diff --git a/Weather/plugin.py b/Weather/plugin.py index 2de1e2c..7e0e6c1 100644 --- a/Weather/plugin.py +++ b/Weather/plugin.py @@ -228,9 +228,9 @@ class Weather(callbacks.Plugin): s = ircutils.mircColor(s, color) # return. return s - except ValueError as e: + except (TypeError, ValueError) as e: self.log.info("Weather: ValueError trying to convert temp: {0} message: {1}".format(f, e)) - return f + return "N/A" def _wind(self, angle, useSymbols=False): """Converts degrees to direction for wind. Can optionally return a symbol."""