fix: error while trying to get directions (#18827)
This commit is contained in:
parent
7496548c39
commit
9d77e9f719
@ -238,7 +238,7 @@ class DeliveryTrip(Document):
|
||||
try:
|
||||
directions = maps_client.directions(**directions_data)
|
||||
except Exception as e:
|
||||
frappe.throw(_(e.message))
|
||||
frappe.throw(_(e))
|
||||
|
||||
return directions[0] if directions else False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user