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
Branches
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ class Frame: ...@@ -200,7 +200,7 @@ class Frame:
try: try:
import mdtraj import mdtraj
except ImportError as e: except ImportError as e:
if "scipy" in e.msg: if "scipy" in repr(e):
e.msg = "XTC output with MDTraj also requires Scipy" e.msg = "XTC output with MDTraj also requires Scipy"
else: else:
e.msg = "XTC output requires the module MDTraj (and probably Scipy)" e.msg = "XTC output requires the module MDTraj (and probably Scipy)"
......
...@@ -181,7 +181,7 @@ class FrameReaderMDTraj(FrameReader): ...@@ -181,7 +181,7 @@ class FrameReaderMDTraj(FrameReader):
try: try:
import mdtraj import mdtraj
except ImportError as e: except ImportError as e:
if "scipy" in e.msg: if "scipy" in repr(e):
e.msg = "The MDTraj FrameReader also requires Scipy" e.msg = "The MDTraj FrameReader also requires Scipy"
else: else:
e.msg = "The MDTraj FrameReader requires the module MDTraj (and probably Scipy)" 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