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
1 changed files with 1 additions and 1 deletions

View File

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