Skip to content

Commit

Permalink
score: continue on temporary db error
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Nyhus committed Mar 2, 2024
1 parent 2ca3d3f commit 165b86f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion score_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def score_tiles(db, image_dir, nib_api_key, feature_name, progress, m,
image_index += 1
progress.finished(1, float(result), tile_data[1])
break
except sqlite3.OperationalError:
except sqlite3.OperationalError as e:
if database.temporary_error(e):
continue
raise

if limit and image_index >= limit:
Expand Down

0 comments on commit 165b86f

Please sign in to comment.