updated exception handling

This commit is contained in:
Andrei Stoica 2022-07-22 16:25:45 -04:00
parent 6f3056bc1c
commit fe8362b02c
1 changed files with 2 additions and 2 deletions

View File

@ -156,9 +156,9 @@ with S.begin() as sess:
except KeyboardInterrupt as e: except KeyboardInterrupt as e:
savepoint.rollback() savepoint.rollback()
break break
except Exception as e: except IntegrityError as e:
savepoint.rollback() savepoint.rollback()
logging.error(e) logging.error(e)
break continue