From ec9f4cd91f73b7c4e7072c1c86c2fd2b72e39459 Mon Sep 17 00:00:00 2001 From: Ashutosh619-sudo Date: Wed, 15 Nov 2023 13:17:22 +0530 Subject: [PATCH] comment resolved --- apps/netsuite/exceptions.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/apps/netsuite/exceptions.py b/apps/netsuite/exceptions.py index 31c9a554..43fe9782 100644 --- a/apps/netsuite/exceptions.py +++ b/apps/netsuite/exceptions.py @@ -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