mirror of https://github.com/KLayout/klayout.git
[consider merging] Fixed Python Exit Exception - Python test fails were not recognized
This commit is contained in:
parent
b1ddb702b8
commit
38d7d34642
|
|
@ -117,8 +117,9 @@ void check_error ()
|
|||
} else if (PyErr_GivenExceptionMatches (exc_type.get (), PyExc_SystemExit)) {
|
||||
|
||||
int status = 0;
|
||||
if (exc_value && test_type<int> (exc_value.get (), true)) {
|
||||
status = python2c<int> (exc_value.get ());
|
||||
if (exc_value) {
|
||||
tl::Variant st = python2c<tl::Variant> (exc_value.get ());
|
||||
status = st.to_int ();
|
||||
}
|
||||
|
||||
throw tl::ExitException (status);
|
||||
|
|
|
|||
Loading…
Reference in New Issue