diff --git a/plugins/weather/weather_press_ b/plugins/weather/weather_press_ index 12cc9936..7ce091d9 100755 --- a/plugins/weather/weather_press_ +++ b/plugins/weather/weather_press_ @@ -37,7 +37,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config": print('graph_scale no') else: u = urlopen(url % code) - txt = u.read() + txt = str(u.read()) u.close() hpa = re_hpa.findall(txt)[0] diff --git a/plugins/weather/weather_temp_ b/plugins/weather/weather_temp_ index 2d28b436..d0e9c606 100755 --- a/plugins/weather/weather_temp_ +++ b/plugins/weather/weather_temp_ @@ -37,7 +37,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config": print('graph_args --base 1000 -l 0') else: u = urlopen(url % code) - txt = u.read() + txt = str(u.read()) u.close() C = re_C.findall(txt)[0]