Need to check if env file exists, otherwise it errors
This commit is contained in:
parent
c9f7ab8f92
commit
42ba2be0f8
@ -18,6 +18,7 @@ if not DOWNLOAD_PATH:
|
||||
DOWNLOAD_PATH = "./downloads"
|
||||
|
||||
# Read in dot env file
|
||||
if os.path.exists(".env"):
|
||||
file = open(".env", "r")
|
||||
lines = file.readlines()
|
||||
for line in lines:
|
||||
|
Loading…
Reference in New Issue
Block a user