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:
|
try:
|
||||||
directions = maps_client.directions(**directions_data)
|
directions = maps_client.directions(**directions_data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
frappe.throw(_(e.message))
|
frappe.throw(_(e))
|
||||||
|
|
||||||
return directions[0] if directions else False
|
return directions[0] if directions else False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user