summaryrefslogtreecommitdiff
path: root/fbin-scanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'fbin-scanner.py')
-rw-r--r--fbin-scanner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fbin-scanner.py b/fbin-scanner.py
index 3dac420..0c343d9 100644
--- a/fbin-scanner.py
+++ b/fbin-scanner.py
@@ -143,6 +143,7 @@ def poll_loop():
# On errors, log the exception and retry. Don't update 'now' so that we will retry with the same files.
# This tends to happen eg. when we process a file but it's been deleted when we try to update it.
logger.exception('Error while processing files')
+ db.session.rollback()
time.sleep(60)