diff --git a/ecommerce_integrations/unicommerce/delivery_note.py b/ecommerce_integrations/unicommerce/delivery_note.py index 831005a9..01f7a7db 100644 --- a/ecommerce_integrations/unicommerce/delivery_note.py +++ b/ecommerce_integrations/unicommerce/delivery_note.py @@ -91,6 +91,7 @@ def create_delivery_note(so, sales_invoice): frappe.flags.request_id = log.name except Exception as e: create_unicommerce_log(status="Error", exception=e, rollback=True) + raise else: create_unicommerce_log(status="Success") frappe.flags.request_id = None