Skip to content

Commit

Permalink
Catch TypeErrors that arise writing StateVector objects (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex L. Urban authored Jan 17, 2021
1 parent 8a6790e commit 2050fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwsumm/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def _write_object(data, *args, **kwargs):
"""
try:
return data.write(*args, **kwargs)
except ValueError as e:
except (TypeError, ValueError) as e:
warnings.warn(str(e))
except RuntimeError as e:
if 'name already exists' in str(e).lower():
Expand Down

0 comments on commit 2050fca

Please sign in to comment.