Skip to content

Commit

Permalink
fix: use .get on environ
Browse files Browse the repository at this point in the history
  • Loading branch information
pxseu authored Oct 31, 2021
1 parent 8e5e001 commit 034014b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anilist_readme/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os import environ

logger = logging.getLogger("AniList")
logger.setLevel(logging.DEBUG if environ["DEV"] == "true" else logging.INFO)
logger.setLevel(logging.DEBUG if environ.get("DEV") == "true" else logging.INFO)

handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter(fmt="%(asctime)s [%(levelname)s] - %(name)s: %(message)s", datefmt="%x %X"))
Expand Down

0 comments on commit 034014b

Please sign in to comment.