From 29a4cb74d8fc95569016fa417ea69d284dd27e39 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Fri, 17 Dec 2021 16:23:40 -0600 Subject: [PATCH] i3pystatus.weather.wunderground: Fix regression in high temp (#832) In the afternoon this value becomes null. Set it to an empty string when the null value is encountered. --- i3pystatus/weather/wunderground.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3pystatus/weather/wunderground.py b/i3pystatus/weather/wunderground.py index e9d75ff..a4112b2 100644 --- a/i3pystatus/weather/wunderground.py +++ b/i3pystatus/weather/wunderground.py @@ -201,6 +201,9 @@ class Wunderground(WeatherBackend): return default else: return default + + if ptr is None: + return default return str(ptr) pressure_tendency = _find(