summaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-07 11:14:29 -0800
committerScott <[email protected]>2022-01-07 11:14:29 -0800
commite8671a716da868332d3ac1f66d4d2f7f8d33fc28 (patch)
treeb62a841528cfc3bc64963666143083fcdac7c975 /bootstrap.py
parent5f75cf834725ac26b289cc5f157af0cb71cd5f0e (diff)
Make logging optionally remove global handlers added by (shitty) pip
modules. Make config optionally halt on unrecognized arguments. Make profanity filter smarter.
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py2
1 files changed, 1 insertions, 1 deletions
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