fix: error while trying to get directions (#18827)

This commit is contained in:
Rohan 2019-09-05 14:51:22 +05:30 committed by Nabin Hait
parent 7496548c39
commit 9d77e9f719

View File

@ -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