fix: Check if path is None before checking path

This commit is contained in:
Vikash Kothary 2022-10-19 09:59:40 +01:00
parent bc6f8e8f5c
commit f2c4316e29

View File

@ -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