Yet another update

This commit is contained in:
Terence Simpson 2008-08-07 21:09:11 +01:00
parent de212755bb
commit fc89bc3bdf
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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 = {}