Skip to content

Commit

Permalink
add exception if operational error when recereating
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Nov 4, 2024
1 parent e8b5499 commit 70662ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edc_qareports/model_mixins/qa_report_model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def recreate_db_view(cls, drop: bool | None = None, verbose: bool | None = None)
if drop:
try:
c.execute(f"drop view {cls._meta.db_table};")
except OperationalError as e:
except OperationalError:
pass
c.execute(f"create view {cls._meta.db_table} as {sql};")
sys.stdout.write(
Expand Down

0 comments on commit 70662ac

Please sign in to comment.