Prevent two replies when @weather succeeds

This commit is contained in:
James Vega 2004-12-06 20:31:47 +00:00
parent 91c6cb51e5
commit e4fa4dec7b

View File

@ -131,7 +131,7 @@ class Weather(callbacks.Privmsg):
try: try:
getattr(self, command)(irc, msg, args[:]) getattr(self, command)(irc, msg, args[:])
self.log.info('%s lookup succeeded.', command) self.log.info('%s lookup succeeded.', command)
break return
except NoLocation: except NoLocation:
self.log.info('%s lookup failed as backup.', command) self.log.info('%s lookup failed as backup.', command)
irc.error('Could not retrieve weather for %s.' % irc.error('Could not retrieve weather for %s.' %