Fix crash when retrieving weather data
This commit is contained in:
@ -105,7 +105,7 @@ class WeatherToFreemobile():
|
||||
break
|
||||
return_message.append(" - {:2d}h : {}mm".format(
|
||||
weather_date.hour,
|
||||
round(float(weather.get_rain()['3h']),1)
|
||||
round(float(weather.get_rain().get('3h',0)),1)
|
||||
))
|
||||
return "\n".join(return_message)
|
||||
|
||||
|
Reference in New Issue
Block a user