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.