Yet another update
This commit is contained in:
@ -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'
|
||||
|
||||
|
@ -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 = {}
|
||||
|
Reference in New Issue
Block a user