Fix bug #1063950, traceback when Weather is an unexpected format.

This commit is contained in:
James Vega 2004-11-12 16:24:10 +00:00
parent f36fdd3d21
commit b135107038
1 changed files with 1 additions and 1 deletions

View File

@ -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'])