Skip to content

Commit

Permalink
🔧 logger.level could be None for some reason, fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Nov 25, 2021
1 parent 9ed75e6 commit 3be824d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charset_normalizer/api.py
Expand Up @@ -68,7 +68,7 @@ def from_bytes(
)

if explain:
previous_logger_level = logger.level # type: int
previous_logger_level = logger.level # type: Optional[int]
logger.addHandler(explain_handler)
logger.setLevel(logging.INFO)

Expand Down

0 comments on commit 3be824d

Please sign in to comment.