mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fix bug #1063950, traceback when Weather is an unexpected format.
This commit is contained in:
parent
f36fdd3d21
commit
b135107038
@ -459,7 +459,7 @@ class Weather(callbacks.Privmsg):
|
||||
pass
|
||||
try:
|
||||
resp.append('Wind: %s at %s %s.' % tuple(info['Wind'].split()))
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
resp.append('Pressure: %s.' % info['Pressure'])
|
||||
resp.append('Visibility: %s.' % info['Visibility'])
|
||||
|
Loading…
Reference in New Issue
Block a user