From 37f14f537afc044d9a604f25e2cbbc54078db61a Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Nov 2021 16:17:26 +0100 Subject: [PATCH] make sure bool for maintenance sate --- InvenTree/plugin/apps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 78d861d0a5..14f077847b 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -42,7 +42,7 @@ class PluginAppConfig(AppConfig): """load and activate all IntegrationPlugins""" logger.info('Start loading plugins') # set maintanace mode - _maintenance = get_maintenance_mode() + _maintenance = bool(get_maintenance_mode()) if not _maintenance: set_maintenance_mode(True) @@ -63,7 +63,7 @@ class PluginAppConfig(AppConfig): """unload and deactivate all IntegrationPlugins""" logger.info('Start unloading plugins') # set maintanace mode - _maintenance = get_maintenance_mode() + _maintenance = bool(get_maintenance_mode()) if not _maintenance: set_maintenance_mode(True)