Skip to content

Commit 6bfb73c

Browse files
committed
change from print statement to runtime error
1 parent 9427b7e commit 6bfb73c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

job_export.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
DB_URL = f"jdbc:postgresql://{DB_HOST}/{DB_DATABASE}"
6969
else:
7070
DB_URL = None
71-
print("DB_HOST or DB_DATABASE is missing. DB_URL cannot be constructed.")
71+
raise RuntimeError(
72+
"DB_HOST or DB_DATABASE is missing. DB_URL cannot be constructed."
73+
)
7274

7375
dictionary_url = os.environ["DICTIONARY_URL"]
7476
dictionary, model = init_dictionary(url=dictionary_url)

0 commit comments

Comments
 (0)