From aa34b8bc4f626f5d043f7ad7b557454c0ce850da Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 15 May 2019 19:13:09 +0200 Subject: [PATCH] Fixed stability issue --- Calendar/WeatherColumnDesign.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Calendar/WeatherColumnDesign.py b/Calendar/WeatherColumnDesign.py index 8387e3e..83684c9 100644 --- a/Calendar/WeatherColumnDesign.py +++ b/Calendar/WeatherColumnDesign.py @@ -31,7 +31,9 @@ class WeatherColumnDesign (DesignEntity): temperature = forecast.air_temperature + " " + self.__get_unit__(("°C", "°F")) humidity = forecast.air_humidity + "%" if self.forecast.units== "aviation": - if len(forecast.wind_deg)==1: + if cur_weather.wind_deg == None: + cur_weather.wind_deg = "" + elif len(forecast.wind_deg)==1: forecast.wind_deg = "00" + forecast.wind_deg elif len(forecast.wind_deg)==2: forecast.wind_deg = "0" + forecast.wind_deg