Skip to content

Commit

Permalink
feat: allow linking of request http errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao authored and rutwikhdev committed May 11, 2024
1 parent dcfaaf9 commit f0d1568
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frappe/integrations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def make_request(method: str, url: str, auth=None, headers=None, data=None, json
else:
return
except Exception as exc:
frappe.log_error()
if frappe.flags.integration_request_doc:
frappe.flags.integration_request_doc.log_error()
else:
frappe.log_error()
raise exc


Expand Down

0 comments on commit f0d1568

Please sign in to comment.