Skip to content

Commit 554d1d0

Browse files
committed
ENH: do not swallow traceback to original exception when failing to define a colormap
1 parent 02f1bb3 commit 554d1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmasher/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ def sort_key(name):
13151315
except Exception as error:
13161316
raise ValueError(
13171317
f"Provided colormap {cm_name} is invalid! ({error})"
1318-
) from None
1318+
) from error
13191319

13201320

13211321
# Function to register a custom colormap in MPL and CMasher

0 commit comments

Comments
 (0)