mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-24 10:02:04 +05:00
PAL12755: EDF: SALOME frozen with Load Script and a Python Module. Improve fix to not catch exceptions.
This commit is contained in:
parent
1cfad77716
commit
9ab6519add
@ -44,13 +44,7 @@
|
|||||||
|
|
||||||
PyAllowThreadsGuard guard;
|
PyAllowThreadsGuard guard;
|
||||||
|
|
||||||
try {
|
$action
|
||||||
$action
|
|
||||||
}
|
|
||||||
catch(...) {
|
|
||||||
PyErr_SetString(PyExc_RuntimeError,"Unknown exception caught");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
%include "typemaps.i"
|
%include "typemaps.i"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user