def call_handler(self, exception, debug): try: raise exception except Exception: exception_handler(*sys.exc_info(), debug=debug)