Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pycgtool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Graham
pycgtool
Commits
cc073fbf
Commit
cc073fbf
authored
Jun 2, 2017
by
James Graham
Browse files
Options
Downloads
Patches
Plain Diff
Fix failing test with Py3.2 - Exceptions do not have msg
parent
3b333aa8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pycgtool/frame.py
+1
-1
1 addition, 1 deletion
pycgtool/frame.py
pycgtool/framereader.py
+1
-1
1 addition, 1 deletion
pycgtool/framereader.py
with
2 additions
and
2 deletions
pycgtool/frame.py
+
1
−
1
View file @
cc073fbf
...
@@ -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)
"
...
...
This diff is collapsed.
Click to expand it.
pycgtool/framereader.py
+
1
−
1
View file @
cc073fbf
...
@@ -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)
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment