Skip to content

Instantly share code, notes, and snippets.

@FFY00
Created August 24, 2021 13:44
Show Gist options
  • Save FFY00/69132ea46b3940029afa92c79d506747 to your computer and use it in GitHub Desktop.
Save FFY00/69132ea46b3940029afa92c79d506747 to your computer and use it in GitHub Desktop.
def escape_error_handler(func):
def new_func(*args, **kwargs):
try:
return func(*args, **kwargs)
except:
import traceback
print()
traceback.print_exc()
import os
os._exit(1)
return new_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment