mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
do not cover safety functions for wrongly conf swarms
This commit is contained in:
parent
f2aeab09ec
commit
aee8ca1c78
@ -150,7 +150,7 @@ class PluginsRegistry:
|
|||||||
# Set maintanace mode
|
# Set maintanace mode
|
||||||
_maintenance = bool(get_maintenance_mode())
|
_maintenance = bool(get_maintenance_mode())
|
||||||
if not _maintenance:
|
if not _maintenance:
|
||||||
set_maintenance_mode(True)
|
set_maintenance_mode(True) # pragma: no cover
|
||||||
|
|
||||||
# remove all plugins from registry
|
# remove all plugins from registry
|
||||||
self._clean_registry()
|
self._clean_registry()
|
||||||
@ -160,7 +160,7 @@ class PluginsRegistry:
|
|||||||
|
|
||||||
# remove maintenance
|
# remove maintenance
|
||||||
if not _maintenance:
|
if not _maintenance:
|
||||||
set_maintenance_mode(False)
|
set_maintenance_mode(False) # pragma: no cover
|
||||||
logger.info('Finished unloading plugins')
|
logger.info('Finished unloading plugins')
|
||||||
|
|
||||||
def reload_plugins(self):
|
def reload_plugins(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user