mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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
|
pass
|
||||||
try:
|
try:
|
||||||
resp.append('Wind: %s at %s %s.' % tuple(info['Wind'].split()))
|
resp.append('Wind: %s at %s %s.' % tuple(info['Wind'].split()))
|
||||||
except ValueError:
|
except (ValueError, TypeError):
|
||||||
pass
|
pass
|
||||||
resp.append('Pressure: %s.' % info['Pressure'])
|
resp.append('Pressure: %s.' % info['Pressure'])
|
||||||
resp.append('Visibility: %s.' % info['Visibility'])
|
resp.append('Visibility: %s.' % info['Visibility'])
|
||||||
|
Loading…
Reference in New Issue
Block a user