Fix for world.documenting issue.

This commit is contained in:
Jeremy Fincher 2004-07-28 02:20:58 +00:00
parent 03b183da7f
commit 848303c021
2 changed files with 8 additions and 3 deletions

View File

@ -296,8 +296,6 @@ class PeriodicFileDownloader(object):
self.getFile(filename)
def _downloadFile(self, filename, url, f):
if world.documenting:
return
self.currentlyDownloading.add(filename)
try:
try:
@ -336,6 +334,8 @@ class PeriodicFileDownloader(object):
self.currentlyDownloading.remove(filename)
def getFile(self, filename):
if world.documenting:
return
(url, timeLimit, f) = self.periodicFiles[filename]
if time.time() - self.lastDownloaded[filename] > timeLimit and \
filename not in self.currentlyDownloading:

View File

@ -310,7 +310,12 @@ def genPlugins():
moduleInfo = imp.find_module(pluginName,
conf.supybot.directories.plugins()
)
module = imp.load_module(pluginName, *moduleInfo)
try:
module = imp.load_module(pluginName, *moduleInfo)
except Exception, e:
print 'Couldn\'t load %s: %s' % \
(pluginName, utils.exnToString(e))
continue
if not hasattr(module, 'Class'):
print '%s is not a plugin.' % filename
continue