From a7b84fa8174d3f3719bd8ff6e1b3c0004db97904 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Mon, 13 Apr 2020 20:08:14 +0200 Subject: [PATCH] I want to fucking strangle someone --- shittyserver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shittyserver.py b/shittyserver.py index b2fff71..c31cfd8 100644 --- a/shittyserver.py +++ b/shittyserver.py @@ -20,8 +20,6 @@ from raygun4py import raygunprovider # type: ignore config = configparser.RawConfigParser() config.read("serverconfig.ini") -ENABLE_EXCEPTION_LOGGING = False - if config.get("raygun", "enable") == "True": def handle_exception( @@ -29,6 +27,7 @@ if config.get("raygun", "enable") == "True": exc_value: BaseException, exc_traceback: TracebackType, ) -> None: + sys.__excepthook__(exc_type, exc_value, exc_traceback) cl = raygunprovider.RaygunSender(config.get("raygun", "key")) cl.send_exception(exc_info=(exc_type, exc_value, exc_traceback))