Closed borupdaniel closed 4 years ago
os.environ.get defaults to None if it can't find the key, which wasn't caught by the KeyError exception. Instead, just use os.environ.get's ability to handle a default return value in case it can't find the key.
os.environ.get defaults to None if it can't find the key, which wasn't caught by the KeyError exception. Instead, just use os.environ.get's ability to handle a default return value in case it can't find the key.