From fe8362b02c3e8ff7a334d72c957bf7c75f870a96 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Fri, 22 Jul 2022 16:25:45 -0400 Subject: [PATCH] updated exception handling --- src/scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scrape.py b/src/scrape.py index 30b43df..0603225 100644 --- a/src/scrape.py +++ b/src/scrape.py @@ -156,9 +156,9 @@ with S.begin() as sess: except KeyboardInterrupt as e: savepoint.rollback() break - except Exception as e: + except IntegrityError as e: savepoint.rollback() logging.error(e) - break + continue \ No newline at end of file