[Python.NET] trapping errors

Jason Sachs jmsachs at gmail.com
Tue Oct 15 18:48:18 CEST 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20131015/1041b4fc/attachment.html>


More information about the PythonDotNet mailing list