2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

break on database error

This commit is contained in:
Matthias
2021-11-21 00:53:04 +01:00
parent 170e0e45e3
commit be5289ba0f

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')