Commit 439759f 1 parent e65ad89 commit 439759f Copy full SHA for 439759f
File tree 1 file changed +3
-3
lines changed
esmvalcore/preprocessor/_derive
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
import iris
6
6
from iris import Constraint
7
7
8
- from ._baseclass import DerivedVariableBase
9
8
from esmvalcore .exceptions import RecipeError
9
+ from ._baseclass import DerivedVariableBase
10
10
11
11
logger = logging .getLogger (__name__ )
12
12
@@ -52,10 +52,10 @@ def calculate(cubes):
52
52
except iris .exceptions .ConstraintMismatchError :
53
53
try :
54
54
sic = cubes .extract_cube (Constraint (name = 'siconca' ))
55
- except iris .exceptions .ConstraintMismatchError :
55
+ except iris .exceptions .ConstraintMismatchError as exc :
56
56
raise RecipeError (
57
57
'Derivation of siextent failed due to missing variables '
58
- 'sic and siconca.' )
58
+ 'sic and siconca.' ) from exc
59
59
60
60
ones = da .ones_like (sic )
61
61
siextent_data = da .ma .masked_where (sic .lazy_data () < 15. , ones )
You can’t perform that action at this time.
0 commit comments