From e464b0355c97c52cdf9944dfb76512bfeb770c1b Mon Sep 17 00:00:00 2001 From: "tim.reichard" Date: Mon, 8 Feb 2021 09:15:12 -0600 Subject: [PATCH] Update logic not to commit if exception is thrown --- aioradio/file_ingestion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioradio/file_ingestion.py b/aioradio/file_ingestion.py index f82255b..cc2a7e7 100644 --- a/aioradio/file_ingestion.py +++ b/aioradio/file_ingestion.py @@ -114,7 +114,7 @@ def child_wrapper(*args, **kwargs) -> Any: if rollback[name]: conn.rollback() - else: + elif error is None: conn.commit() conn.close()