Skip to content

Commit

Permalink
trap permissions error emitted by sqlite db on sync
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofgentoo committed Oct 18, 2023
1 parent 698b3a5 commit ba0d3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keg_auth/core.py
Expand Up @@ -280,7 +280,7 @@ def sync_permissions(app):
# syncing permissions during testing was causing some db session issues.
if not app.testing:
sync_permissions(app)
except sa.exc.ProgrammingError as exc:
except (sa.exc.ProgrammingError, sa.exc.OperationalError) as exc:
if 'permissions' not in str(exc):
raise

Expand Down

0 comments on commit ba0d3b2

Please sign in to comment.