Skip to content

Commit

Permalink
comment resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Nov 15, 2023
1 parent 01dfd0a commit ec9f4cd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions apps/netsuite/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ def __handle_netsuite_connection_error(expense_group: ExpenseGroup, task_log: Ta
}

Error.objects.update_or_create(
workspace_id=expense_group.workspace_id,
expense_group=expense_group,
defaults={
'type': 'NETSUITE_ERROR',
'error_title': netsuite_error_message,
'error_detail': detail['message'],
'is_resolved': False
}
)
workspace_id=expense_group.workspace_id,
expense_group=expense_group,
defaults={
'type': 'NETSUITE_ERROR',
'error_title': netsuite_error_message,
'error_detail': detail['message'],
'is_resolved': False
})

task_log.status = 'FAILED'
task_log.detail = detail
Expand Down

0 comments on commit ec9f4cd

Please sign in to comment.