Skip to content

Commit

Permalink
Check for table during error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Charl1996 committed May 21, 2024
1 parent ef45dc4 commit 6296975
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions corehq/apps/userreports/sql/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ def bulk_delete(self, docs, use_shard_col=True):
try:
with self.session_context() as session:
session.execute(delete)
except ProgrammingError:
return
except ProgrammingError as e:
if not self.table_exists:
return
else:
raise e

register_data_source_row_change(
domain=self.config.domain,
Expand Down

0 comments on commit 6296975

Please sign in to comment.