fixed import error in plugins being slient, affecting plugins not being enabled on some platforms/versions

This commit is contained in:
KF 2019-03-06 16:39:46 -06:00
parent ecad9ac207
commit 7b635c4fc9
3 changed files with 4 additions and 2 deletions

View File

@ -72,6 +72,8 @@ def enable(name, onionr = None, start_event = True):
try:
events.call(get_plugin(name), 'enable', onionr)
except ImportError: # Was getting import error on Gitlab CI test "data"
# NOTE: If you are experiencing issues with plugins not being enabled, it might be this resulting from an error in the module
# can happen inconsistenly (especially between versions)
return False
else:
enabled_plugins.append(name)

View File

@ -19,7 +19,7 @@
'''
# Imports some useful libraries
import logger, config, threading, time, readline, datetime, sys, json
import logger, config, threading, time, datetime, sys, json
from onionrblockapi import Block
import onionrexceptions, onionrusers
import locale

View File

@ -19,7 +19,7 @@
'''
# Imports some useful libraries
import logger, config, threading, time, readline, datetime
import logger, config, threading, time, datetime
from onionrblockapi import Block
import onionrexceptions
from onionrusers import onionrusers