mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 03:55:41 +00:00
do not reload whe currently loading
This commit is contained in:
@ -121,6 +121,10 @@ class Plugins:
|
||||
|
||||
def reload_plugins(self):
|
||||
"""safely reload IntegrationPlugins"""
|
||||
# do not reload whe currently loading
|
||||
if self.is_loading:
|
||||
return
|
||||
|
||||
logger.info('Start reloading plugins')
|
||||
with maintenance_mode_on():
|
||||
self.unload_plugins()
|
||||
|
Reference in New Issue
Block a user