Skip to content

Commit

Permalink
refactor: tighten exception-catching in _univ_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Dec 21, 2020
1 parent aec6b9c commit b0db982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powersimdata/input/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _univ_eq(ref, test, failure_flag=None):
assert set(ref.columns) == set(test.columns)
for col in ref.columns:
assert (ref[col] == test[col]).all()
except Exception:
except (AssertionError, ValueError):
if failure_flag is None:
raise
else:
Expand Down

0 comments on commit b0db982

Please sign in to comment.