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

View File

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