fix: handle model save error in issue activity (#1661)

This commit is contained in:
Nikhil 2023-07-25 14:23:10 +05:30 committed by GitHub
parent 998fab80b5
commit 3ad3cc77f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1044,8 +1044,11 @@ def issue_activity(
issue = Issue.objects.filter(pk=issue_id).first()
if issue is not None:
issue.updated_at = timezone.now()
issue.save(update_fields=["updated_at"])
try:
issue.updated_at = timezone.now()
issue.save(update_fields=["updated_at"])
except Exception as e:
pass
if subscriber:
# add the user to issue subscriber