Skip to content

Commit 502c7a3

Browse files
committed
Add try except block
1 parent 127a6f8 commit 502c7a3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/truth_seeker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def load_to_db():
7777

7878
if __name__ == "__main__":
7979
if dynaconfig.settings["LOAD_TO_DB"]:
80-
load_to_db()
80+
try:
81+
load_to_db()
82+
except BaseException as base_err:
83+
logging.error(base_err)
8184
else:
8285
list_info(fetch_info())

0 commit comments

Comments
 (0)