fix: Check if path is None before checking path
This commit is contained in:
parent
bc6f8e8f5c
commit
f2c4316e29
@ -28,7 +28,7 @@ def load_from_env(conf):
|
|||||||
|
|
||||||
def load_from_file(path=None):
|
def load_from_file(path=None):
|
||||||
# backwards compat
|
# backwards compat
|
||||||
if len(path) > 1:
|
if path is not None and len(path) > 1:
|
||||||
path = path[1]
|
path = path[1]
|
||||||
else:
|
else:
|
||||||
path = None
|
path = None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user