diff --git a/Common/util_eddies.py b/Common/util_eddies.py index 556492448f309631a9bb7c9eb6af36837f0ae6ff..69f3719184de41a81ce953762e98df757fcae7a0 100644 --- a/Common/util_eddies.py +++ b/Common/util_eddies.py @@ -177,8 +177,11 @@ class SHPC_class: ishape = eddy_index - 1 else: # date > self.d_init[i_slice] - ishape = self.get_ishape_last(i_slice, orientation)\ - [date - self.d_init[i_slice] - 1] + eddy_index + try: + ishape = self.get_ishape_last(i_slice, orientation)\ + [date - self.d_init[i_slice] - 1] + eddy_index + except TypeError: + ishape = None return ishape