Fix conditional check on empty data.

Fixes issue #64
This commit is contained in:
Markus Opolka 2020-07-15 08:07:16 +02:00
parent c23ebac77a
commit 1f440e0ff5

View File

@ -152,7 +152,7 @@ class JsonHelper:
(Element.Key.NestedKey). Returns (None, 'not_found') if not found (Element.Key.NestedKey). Returns (None, 'not_found') if not found
""" """
if temp_data: if temp_data != '':
data = temp_data data = temp_data
else: else:
data = self.data data = self.data