refactor: improved error handling, timeouts and use temp files
This commit is contained in:
1 parent
0a31601b77
commit
1e08391e0e
3 files changed
+26
-18
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import os
|
||||
import environs
|
||||
|
||||
env = environs.Env()
|
||||
try:
|
||||
env = environs.Env()
|
||||
env.read_env("./.env")
|
||||
except FileNotFoundError:
|
||||
print("No .env file found, using os.environ.")
|
||||
|
||||
Reference in new issue
Block a user