Skip to content

Commit

Permalink
fix: catch updated exception from MDTraj 1.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jag1g13 committed Nov 13, 2021
1 parent 222b063 commit b1d1e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycgtool/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(self,
self._load_trajectory()

except OSError as exc:
if 'no loader' in str(exc):
if 'no loader' in str(exc) or 'format is not supported' in str(exc):
raise UnsupportedFormatException from exc

raise
Expand Down

0 comments on commit b1d1e6d

Please sign in to comment.