mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor
This commit is contained in:
parent
8bcdad6a8f
commit
ebe712312c
@ -889,7 +889,7 @@ INTEGRATION_PLUGIN_GLOBALSETTING = {}
|
||||
INTEGRATION_APPS_LOADING = True # Marks if apps were reloaded yet
|
||||
INTEGRATION_PLUGINS_RELOADING = False
|
||||
INTEGRATION_APPS_PATHS = [] # Holds all added plugin_paths
|
||||
INTEGRATION_STARTUP_ERRORS = {} # Holds discovering errors
|
||||
INTEGRATION_ERRORS = {} # Holds discovering errors
|
||||
|
||||
# Test settings
|
||||
PLUGIN_TESTING = get_setting('PLUGIN_TESTING', TESTING) # used to force enable everything plugin
|
||||
|
@ -46,11 +46,11 @@ def get_modules(pkg, recursive: bool = False):
|
||||
# TODO log
|
||||
|
||||
# make sure the registry is set up
|
||||
if 'discovery' not in settings.INTEGRATION_STARTUP_ERRORS:
|
||||
settings.INTEGRATION_STARTUP_ERRORS['discovery'] = []
|
||||
if 'discovery' not in settings.INTEGRATION_ERRORS:
|
||||
settings.INTEGRATION_ERRORS['discovery'] = []
|
||||
|
||||
# add error to stack
|
||||
settings.INTEGRATION_STARTUP_ERRORS['discovery'].append({name: str(error)})
|
||||
settings.INTEGRATION_ERRORS['discovery'].append({name: str(error)})
|
||||
|
||||
return [v for k, v in context.items()]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user