Skip to content

Commit

Permalink
Remove rich.traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Feb 15, 2025
1 parent f2b0814 commit e866b78
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions inputremapper/logging/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,8 @@ def update_verbosity(self, debug):
Also enable rich tracebacks in debug mode.
"""
# pylint really doesn't like what I'm doing with rich.traceback here
# pylint: disable=broad-except,import-error,import-outside-toplevel
if debug:
self.setLevel(logging.DEBUG)

try:
from rich.traceback import install

install(show_locals=True)
self.debug("Using rich.traceback")
except Exception as error:
# since this is optional, just skip all exceptions
if not isinstance(error, ImportError):
self.debug("Cannot use rich.traceback: %s", error)
else:
self.setLevel(logging.INFO)

Expand Down

0 comments on commit e866b78

Please sign in to comment.