Skip to content

Commit ddafc52

Browse files
author
Ivanildo Barauna de Souza Junior
committed
chore: Add validation for SERVER_URL in .env file
1 parent e3804a3 commit ddafc52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etl/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
SRV_URL = str(os.getenv("SERVER_URL"))
1010

11+
if not SRV_URL:
12+
raise Exception("SERVER_URL is not defined in the .env file.")
13+
1114
WORK_DIR = os.path.dirname(os.path.abspath(__file__))
1215
sys.path.append(os.path.dirname(WORK_DIR))
1316

0 commit comments

Comments
 (0)