mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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:
parent
782f36cd48
commit
ebaa7d64a8
@ -699,6 +699,10 @@ class PluginsRegistry:
|
|||||||
# Skip if running during unit testing
|
# Skip if running during unit testing
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not canAppAccessDatabase(allow_shell=True):
|
||||||
|
# Skip check if database cannot be accessed
|
||||||
|
return
|
||||||
|
|
||||||
logger.debug("Checking plugin registry hash")
|
logger.debug("Checking plugin registry hash")
|
||||||
|
|
||||||
# If not already cached, calculate the hash
|
# If not already cached, calculate the hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user