Fix bug involving removing enabled plugins

This commit is contained in:
Arinerron 2018-04-22 21:25:54 -07:00
parent 3e8d76e246
commit e820cc65ac
No known key found for this signature in database
GPG Key ID: 99383627861C62F0

View File

@ -114,7 +114,10 @@ class Onionr:
for name in plugins.get_enabled_plugins():
if not os.path.exists(plugins.get_plugin_data_folder(name)):
os.mkdir(plugins.get_plugin_data_folder(name))
try:
os.mkdir(plugins.get_plugin_data_folder(name))
except:
plugins.disable(name, onionr = self, stop_event = False)
if not os.path.exists(self.onionrCore.peerDB):
self.onionrCore.createPeerDB()