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

This commit is contained in:
Rohan
2019-09-05 14:51:04 +05:30
committed by Nabin Hait
parent 5dbfeb8557
commit 3372b7411d

View File

@@ -340,7 +340,7 @@ def get_directions(route, optimize):
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