I want to fucking strangle someone

This commit is contained in:
Marks Polakovs 2020-04-13 20:08:14 +02:00
parent b709f552ce
commit a7b84fa817

View file

@ -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))