2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Skip plugin registry reload if performing django functions (#5823)

* Skip plugin registry reload if performing django functions

* Revert changes to pre-commit
This commit is contained in:
Oliver
2023-10-31 15:47:59 +11:00
committed by GitHub
parent 782f36cd48
commit ebaa7d64a8

View File

@ -699,6 +699,10 @@ class PluginsRegistry:
# Skip if running during unit testing
return
if not canAppAccessDatabase(allow_shell=True):
# Skip check if database cannot be accessed
return
logger.debug("Checking plugin registry hash")
# If not already cached, calculate the hash