I use some Python libraries that rely on Python bindings to execute code in other language. Sometimes the execution of the underlying code fails and seems to force stop my Python run. try
and except
fail to capture this type of termination.
Is there a simple way to capture any such early termination of my code in Python (or ideally, any termination other than CTRL
+C
)?
Thank you very much for your help