2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00
This commit is contained in:
Matthias
2021-11-20 03:31:58 +01:00
parent 8bcdad6a8f
commit ebe712312c
2 changed files with 4 additions and 4 deletions

View File

@ -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()]