remove debug message

This commit is contained in:
Matthias 2021-11-14 02:45:59 +01:00
parent 8faed72278
commit e3d334f467
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -32,7 +32,7 @@ class PluginAppConfig(AppConfig):
self.activate_integration()
except (OperationalError, ProgrammingError):
# Exception if the database has not been migrated yet
logger.debug('Database was not ready for loading PluginAppConfig')
pass
def collect_plugins(self):
"""collect integration plugins from all possible ways of loading"""
@ -70,8 +70,9 @@ class PluginAppConfig(AppConfig):
try:
plugin_db_setting, _ = PluginConfig.objects.get_or_create(key=plug_key, name=plug_name)
except (OperationalError, ProgrammingError) as error:
# Exception if the database has not been migrated yet
logger.error('Database error while gettign/setting PluginConfig', error)
# Exception if the database has not been migrated yet - check if test are running - raise if not
if not settings.PLUGIN_TESTING:
raise error
plugin_db_setting = None
# always activate if testing