Skip to content

Commit 67558f9

Browse files
Simplify exception handling for dimension labels
1 parent 651235a commit 67558f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ncompare/Comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _create_var_properties(
430430
for dim in the_variable.dims:
431431
try:
432432
dim_list.append(dim.label)
433-
except RuntimeError as err:
433+
except RuntimeError:
434434
dim_list.append("none")
435435

436436
v_dimensions = str(dim_list)

0 commit comments

Comments
 (0)