Remove empty folders on update

Ignore importErrors on load
This commit is contained in:
Ruud
2012-02-14 22:03:26 +01:00
parent 59c1e49fee
commit 4483292930
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ class Loader(object):
did_save += self.loadSettings(m, module_name, save = False)
self.loadPlugins(m, plugin.get('name'))
except Exception, e:
except ImportError:
log.debug('Import error, remove the empty folder: %s' % plugin.get('module'))
except:
log.error('Can\'t import %s: %s' % (module_name, traceback.format_exc()))
if did_save: