Skip to content

Commit a8cc895

Browse files
author
Meatplay
committed
Fix error handling for google distance api
1 parent 4c4d683 commit a8cc895

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flathunter/gmaps_duration_processor.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def process_expose(self, expose):
2424

2525
def get_formatted_durations(self, address):
2626
"""Return a formatted list of GoogleMaps durations"""
27+
if address is None:
28+
return ""
2729
out = ""
2830
for duration in self.config.get('durations', []):
2931
if 'destination' in duration and 'name' in duration:

0 commit comments

Comments
 (0)