mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
remove debug message
This commit is contained in:
parent
8faed72278
commit
e3d334f467
@ -32,7 +32,7 @@ class PluginAppConfig(AppConfig):
|
|||||||
self.activate_integration()
|
self.activate_integration()
|
||||||
except (OperationalError, ProgrammingError):
|
except (OperationalError, ProgrammingError):
|
||||||
# Exception if the database has not been migrated yet
|
# Exception if the database has not been migrated yet
|
||||||
logger.debug('Database was not ready for loading PluginAppConfig')
|
pass
|
||||||
|
|
||||||
def collect_plugins(self):
|
def collect_plugins(self):
|
||||||
"""collect integration plugins from all possible ways of loading"""
|
"""collect integration plugins from all possible ways of loading"""
|
||||||
@ -70,8 +70,9 @@ class PluginAppConfig(AppConfig):
|
|||||||
try:
|
try:
|
||||||
plugin_db_setting, _ = PluginConfig.objects.get_or_create(key=plug_key, name=plug_name)
|
plugin_db_setting, _ = PluginConfig.objects.get_or_create(key=plug_key, name=plug_name)
|
||||||
except (OperationalError, ProgrammingError) as error:
|
except (OperationalError, ProgrammingError) as error:
|
||||||
# Exception if the database has not been migrated yet
|
# Exception if the database has not been migrated yet - check if test are running - raise if not
|
||||||
logger.error('Database error while gettign/setting PluginConfig', error)
|
if not settings.PLUGIN_TESTING:
|
||||||
|
raise error
|
||||||
plugin_db_setting = None
|
plugin_db_setting = None
|
||||||
|
|
||||||
# always activate if testing
|
# always activate if testing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user