Discussion:
[Python.NET] trapping errors
Jason Sachs
2013-10-15 16:48:18 UTC
Permalink
Is there a way to trap errors in python.net? I have an instance of

try:
doSomethingInDotNetThatMayFail()
except:
logger.exception("Something really wrong happened")

and when the .NET library I'm using fails, it prints out an error message
but never gets to the except: clause, and Python crashes.

Loading...