Skip to content

Commit

Permalink
fix: suppress error while updating results
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Jan 20, 2024
1 parent e621a59 commit 28b8e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion insights/insights/doctype/insights_query/insights_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def update_query_results(self, results):
"results_row_count": len(results) - 1,
}
)
query_result.db_update()
with suppress(frappe.exceptions.UniqueValidationError):
query_result.db_update()

def before_fetch(self):
if hasattr(self.variant_controller, "before_fetch"):
Expand Down

0 comments on commit 28b8e67

Please sign in to comment.