Cleanup syntax and fix typo

This commit is contained in:
Tim Möhlmann
2019-01-08 05:16:05 +02:00
parent 71cda7983e
commit 049ca9941f
8 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import shutil
import logging as log
import sys
log.basicConfig(stream=sys.stderr, level=os.environ["LOG_LEVEL"] if "LOG_LEVEL" in os.environ else "WARNING")
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
def convert(src, dst):
logger = log.getLogger("convert()")