fix: handle model save error in issue activity (#1661)
This commit is contained in:
parent
998fab80b5
commit
3ad3cc77f9
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue