Merge pull request #66 from drewkerrigan/array-bug

Fix conditional check on empty data.
This commit is contained in:
Markus Opolka 2020-09-14 10:36:14 +02:00 committed by GitHub
commit 2821a1ae66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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