Skip to content
Snippets Groups Projects
Commit cc073fbf authored by James Graham's avatar James Graham
Browse files

Fix failing test with Py3.2 - Exceptions do not have msg

parent 3b333aa8
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ class Frame:
try:
import mdtraj
except ImportError as e:
if "scipy" in e.msg:
if "scipy" in repr(e):
e.msg = "XTC output with MDTraj also requires Scipy"
else:
e.msg = "XTC output requires the module MDTraj (and probably Scipy)"
......
......@@ -181,7 +181,7 @@ class FrameReaderMDTraj(FrameReader):
try:
import mdtraj
except ImportError as e:
if "scipy" in e.msg:
if "scipy" in repr(e):
e.msg = "The MDTraj FrameReader also requires Scipy"
else:
e.msg = "The MDTraj FrameReader requires the module MDTraj (and probably Scipy)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment