removed try: except: block
This commit is contained in:
parent
fd4516f077
commit
dda5154237
|
@ -212,6 +212,7 @@ class PersistentCache(dict):
|
|||
return (host, nick, command, channel, text)
|
||||
|
||||
|
||||
|
||||
class Bantracker(callbacks.Plugin):
|
||||
"""Plugin to manage bans.
|
||||
See '@list Bantracker' and '@help <command>' for commands"""
|
||||
|
@ -443,7 +444,6 @@ class Bantracker(callbacks.Plugin):
|
|||
irc.reply(s, to=op, private=True)
|
||||
|
||||
def reviewBans(self):
|
||||
try:
|
||||
self.log.debug('Checking for bans that need review ...')
|
||||
now = time.mktime(time.gmtime())
|
||||
lastreview = self.pendingReviews.time
|
||||
|
@ -504,11 +504,6 @@ class Bantracker(callbacks.Plugin):
|
|||
# since we made sure bans are sorted by time, the bans left are more recent
|
||||
break
|
||||
self.pendingReviews.time = now # update last time reviewed
|
||||
except Exception, e:
|
||||
# I need to catch exceptions as they are silenced
|
||||
import traceback
|
||||
self.log.error('Except: %s' %e)
|
||||
self.log.error(traceback.format_exc())
|
||||
|
||||
def _sendReviews(self, irc, msg):
|
||||
host = ircutils.hostFromHostmask(msg.prefix)
|
||||
|
|
Loading…
Reference in New Issue