diff --git a/Bantracker/plugin.py b/Bantracker/plugin.py index 2f38b9a..db74d40 100644 --- a/Bantracker/plugin.py +++ b/Bantracker/plugin.py @@ -48,7 +48,7 @@ import supybot.callbacks as callbacks import supybot.ircmsgs as ircmsgs import supybot.conf as conf import supybot.ircdb as ircdb -import sqlite, pytz, cPickle, datetime, time, random, md5 +import sqlite, pytz, cPickle, datetime, time, random, md5, threading tz = 'UTC' diff --git a/Webcal/plugin.py b/Webcal/plugin.py index 1a35ad8..228d3a0 100644 --- a/Webcal/plugin.py +++ b/Webcal/plugin.py @@ -34,12 +34,12 @@ class Webcal(callbacks.Plugin): try: schedule.removeEvent(self.name()) schedule.removeEvent(self.name() + 'b') - except AssertionError: + except Exception: # Oh well pass try: schedule.addPeriodicEvent(self.refresh_cache, 60 * 20, name=self.name()) schedule.addPeriodicEvent(self.autotopics, 60, name=self.name() + 'b') - except AssertionError: + except Exception: # Just work pass self.cache = {} self.firstevent = {}