I want to fucking strangle someone
This commit is contained in:
parent
b709f552ce
commit
a7b84fa817
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,6 @@ from raygun4py import raygunprovider # type: ignore
|
||||||
config = configparser.RawConfigParser()
|
config = configparser.RawConfigParser()
|
||||||
config.read("serverconfig.ini")
|
config.read("serverconfig.ini")
|
||||||
|
|
||||||
ENABLE_EXCEPTION_LOGGING = False
|
|
||||||
|
|
||||||
if config.get("raygun", "enable") == "True":
|
if config.get("raygun", "enable") == "True":
|
||||||
|
|
||||||
def handle_exception(
|
def handle_exception(
|
||||||
|
@ -29,6 +27,7 @@ if config.get("raygun", "enable") == "True":
|
||||||
exc_value: BaseException,
|
exc_value: BaseException,
|
||||||
exc_traceback: TracebackType,
|
exc_traceback: TracebackType,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
sys.__excepthook__(exc_type, exc_value, exc_traceback)
|
||||||
cl = raygunprovider.RaygunSender(config.get("raygun", "key"))
|
cl = raygunprovider.RaygunSender(config.get("raygun", "key"))
|
||||||
cl.send_exception(exc_info=(exc_type, exc_value, exc_traceback))
|
cl.send_exception(exc_info=(exc_type, exc_value, exc_traceback))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue