From 5f11b3198bf469a2fff426e56f14f34faafa0322 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 14 Jun 2021 21:13:40 -0400 Subject: [PATCH] Fix base schema None issue in handler too --- daemon-common/zkhandler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index bfcbed6b..e4318eb2 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -50,7 +50,10 @@ class ZKConnection(object): def connection(*args, **kwargs): zkhandler = ZKHandler(self.config) zkhandler.connect() - zkhandler.schema.load(zkhandler.read('base.schema.version'), quiet=True) + schema_version = zkhandler.read('base.schema.version') + if schema_version is None: + schema_version = 0 + zkhandler.schema.load(schema_version, quiet=True) ret = function(zkhandler, *args, **kwargs)