diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 9232eda992..decbd333d2 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -229,7 +229,11 @@ class PluginAppConfig(AppConfig): those register models and admin in their respective objects (e.g. admin.site for admin) """ for plugin_path in settings.INTEGRATION_APPS_PATHS: - app_config = apps.get_app_config(plugin_path.split('.')[-1]) + try: + app_config = apps.get_app_config(plugin_path.split('.')[-1]) + except LookupError: + # the plugin was never loaded correctly + break # reload models if they were set # models_module gets set if models were defined - even after multiple loads