hard reset all plugin registration mechanisms on error

This commit is contained in:
Matthias 2021-11-20 03:20:55 +01:00
parent 3dfb8167a7
commit 4c7d295c0e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -72,6 +72,11 @@ class PluginAppConfig(AppConfig):
logger.error(f'Encountered an error with {error.path}:\n{error.message}')
blocked_plugin = error.path
# init apps without any integration plugins
self._clean_registry()
self._clean_installed_apps()
self._activate_plugins(force_reload=True)
# remove maintenance
if not _maintenance:
set_maintenance_mode(False)