From 1f440e0ff56d4d432ca6909a98fd931003d6f0e6 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Wed, 15 Jul 2020 08:07:16 +0200 Subject: [PATCH] Fix conditional check on empty data. Fixes issue #64 --- check_http_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_http_json.py b/check_http_json.py index 4781abd..5256639 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -152,7 +152,7 @@ class JsonHelper: (Element.Key.NestedKey). Returns (None, 'not_found') if not found """ - if temp_data: + if temp_data != '': data = temp_data else: data = self.data