mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user