fix linting (#14302)

This commit is contained in:
Seth Foster
2023-07-31 20:37:37 -04:00
committed by GitHub
parent 445d892050
commit 131dd088cd
3 changed files with 4 additions and 4 deletions

View File

@@ -97,8 +97,6 @@ class SpecialInventoryHandler(logging.Handler):
self.event_handler(dispatch_data)
ColorHandler = logging.StreamHandler
if settings.COLOR_LOGS is True:
try:
from logutils.colorize import ColorizingStreamHandler
@@ -133,3 +131,5 @@ if settings.COLOR_LOGS is True:
except ImportError:
# logutils is only used for colored logs in the dev environment
pass
else:
ColorHandler = logging.StreamHandler