From 06c99e1cc184ee2edffeebd324f276e666c80a8b Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 7 Aug 2023 15:26:54 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index a657b3892..38f239a1a 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -53,14 +53,15 @@ def getArgs(): args_len = len(args) if args_len == 1: - t = args[0].strip('{').strip('}') + t = args[0].strip('{').strip('}').strip() + if (t == ''): + return tmp t = t.split(':') tmp[t[0]] = t[1] elif args_len > 1: for i in range(len(args)): t = args[i].split(':') tmp[t[0]] = t[1] - return tmp