mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Let's remove stupid directories.
This commit is contained in:
parent
b9507c9607
commit
f606c43753
@ -71,7 +71,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
||||
try:
|
||||
files.extend(os.listdir(dir))
|
||||
except EnvironmentError: # OSError, IOError superclass.
|
||||
log.warning('Invalid plugin directory: %s', dir)
|
||||
log.warning('Invalid plugin directory: %r; removing.', dir)
|
||||
conf.supybot.directories.plugins().remove(dir)
|
||||
loweredFiles = map(str.lower, files)
|
||||
try:
|
||||
index = loweredFiles.index(name.lower()+'.py')
|
||||
|
Loading…
Reference in New Issue
Block a user