mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-02 16:31:11 -05:00
Weather: don't error if temperature is not available
This commit is contained in:
parent
03a29d72ad
commit
3f1e76384b
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user