Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
85a51bb3
Commit
85a51bb3
authored
Nov 24, 2015
by
eric pellegrini
Browse files
Improved the error message in case of loading failure
parent
b13352ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/InputData/MMTKTrajectoryInputData.py
View file @
85a51bb3
...
...
@@ -47,8 +47,8 @@ class MMTKTrajectoryInputData(InputFileData):
try
:
traj
=
MMTKTrajectory
(
None
,
self
.
_name
,
"r"
)
except
IOError
:
raise
InputDataError
(
"The MMTK trajectory %r could not be loaded property."
%
self
.
_name
)
except
IOError
as
e
:
raise
InputDataError
(
str
(
e
)
)
self
.
_data
=
traj
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment