mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
fix: handle error handling (#20815)
This commit is contained in:
@@ -238,7 +238,7 @@ class DeliveryTrip(Document):
|
||||
try:
|
||||
directions = maps_client.directions(**directions_data)
|
||||
except Exception as e:
|
||||
frappe.throw(_(e))
|
||||
frappe.throw(_(str(e)))
|
||||
|
||||
return directions[0] if directions else False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user