fix: error while trying to get directions (#18826)
This commit is contained in:
@@ -340,7 +340,7 @@ def get_directions(route, optimize):
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user