mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-06 03:23:41 -05:00
NuWeather: fix geocode error if osm_id is unavailable
This commit is contained in:
parent
545e8a3b8a
commit
2f223dde11
@ -178,7 +178,7 @@ class NuWeather(callbacks.Plugin):
|
||||
|
||||
lat = data['lat']
|
||||
lon = data['lon']
|
||||
osm_id = data['osm_id']
|
||||
osm_id = data.get('osm_id')
|
||||
self.log.debug('NuWeather: saving %s,%s (osm_id %s, %s) for location %s', lat, lon, osm_id, display_name, location)
|
||||
|
||||
result = (lat, lon, display_name, osm_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user