break on database error

This commit is contained in:
Matthias 2021-11-21 00:53:04 +01:00
parent 170e0e45e3
commit be5289ba0f
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -75,6 +75,7 @@ class Plugins:
except (OperationalError, ProgrammingError):
# Exception if the database has not been migrated yet
logger.info('Database not accessible while loading plugins')
break
except IntegrationPluginError as error:
logger.error(f'Encountered an error with {error.path}:\n{error.message}')
log_plugin_error({error.path: error.message}, 'load')