From e8671a716da868332d3ac1f66d4d2f7f8d33fc28 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 7 Jan 2022 11:14:29 -0800 Subject: Make logging optionally remove global handlers added by (shitty) pip modules. Make config optionally halt on unrecognized arguments. Make profanity filter smarter. --- bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap.py') diff --git a/bootstrap.py b/bootstrap.py index 03bb505..7ed8b40 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import functools -import importlib import logging import os from inspect import stack @@ -55,6 +54,7 @@ args.add_argument( original_hook = sys.excepthook + def handle_uncaught_exception(exc_type, exc_value, exc_tb): """ Top-level exception handler for exceptions that make it past any exception -- cgit v1.3