From 7b635c4fc95bcdc6195790adfdd7291a2d9c95a0 Mon Sep 17 00:00:00 2001 From: KF Date: Wed, 6 Mar 2019 16:39:46 -0600 Subject: [PATCH] fixed import error in plugins being slient, affecting plugins not being enabled on some platforms/versions --- onionr/onionrplugins.py | 2 ++ onionr/static-data/default-plugins/encrypt/main.py | 2 +- onionr/static-data/default-plugins/pms/main.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/onionr/onionrplugins.py b/onionr/onionrplugins.py index 198e58da..a7560957 100755 --- a/onionr/onionrplugins.py +++ b/onionr/onionrplugins.py @@ -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) diff --git a/onionr/static-data/default-plugins/encrypt/main.py b/onionr/static-data/default-plugins/encrypt/main.py index 7ea5b446..f917d72a 100755 --- a/onionr/static-data/default-plugins/encrypt/main.py +++ b/onionr/static-data/default-plugins/encrypt/main.py @@ -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 diff --git a/onionr/static-data/default-plugins/pms/main.py b/onionr/static-data/default-plugins/pms/main.py index 5c558a55..363c1259 100755 --- a/onionr/static-data/default-plugins/pms/main.py +++ b/onionr/static-data/default-plugins/pms/main.py @@ -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