From ba605dbb5f7d9f89c0d512a6ccbd690e837475b4 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Sat, 5 Nov 2022 10:06:31 +0100 Subject: [PATCH] in case of error during data load just fail --- .../obtain_livestream_data_and_load_into_database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etl/planning_data/obtain_livestream_data_and_load_into_database.py b/etl/planning_data/obtain_livestream_data_and_load_into_database.py index 4d829c60..e86f1a64 100644 --- a/etl/planning_data/obtain_livestream_data_and_load_into_database.py +++ b/etl/planning_data/obtain_livestream_data_and_load_into_database.py @@ -78,6 +78,7 @@ def load_data_into_database(cursor, data): print(e) print() print(json.dumps(entry, indent = 4)) + raise e def query(search_after): headers = {