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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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