Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
82159daf
Commit
82159daf
authored
Mar 05, 2012
by
Peter Eastman
Browse files
Improved exception handling: catch any exception, not just OpenMMException
parent
385c1475
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/src/swig_doxygen/swig_lib/python/exceptions.i
...pers/python/src/swig_doxygen/swig_lib/python/exceptions.i
+1
-1
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/exceptions.i
View file @
82159daf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
%
exception
{
%
exception
{
try
{
try
{
$
action
$
action
}
catch
(
OpenMM
::
OpenMME
xception
&
e)
{
}
catch
(
std
::
e
xception
&
e)
{
PyErr_SetString
(
PyExc_Exception
,
const_cast
<
char
*>
(
e
.
what
()))
;
PyErr_SetString
(
PyExc_Exception
,
const_cast
<
char
*>
(
e
.
what
()))
;
return
NULL
;
return
NULL
;
}
}
...
...
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