Register multiple excepthooks?

Albert-Jan Roskam sjeik_appie at hotmail.com
Sun Jul 31 05:39:54 EDT 2022


   Hi,
   I have a function init_logging.log_uncaught_errors() that I use for
   sys.excepthook. Now I also want to call another function (ffi.dlclose())
   upon abnormal termination. Is it possible to register multiple
   excepthooks, like with atexit.register? Or should I rename/redefine
   log_uncaught_errors() so it does both things?
   Thanks!
   Albert-Jan


More information about the Python-list mailing list