From 55953539dad9fb64176fd7b4f38e3e623f3724b1 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Sun, 11 Apr 2021 10:44:16 +0200 Subject: [PATCH] Update dataclasses.py Returns also None when returned string is empty This change is to address issue #68 --- cbpi/api/dataclasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbpi/api/dataclasses.py b/cbpi/api/dataclasses.py index 52445a0..e35891b 100644 --- a/cbpi/api/dataclasses.py +++ b/cbpi/api/dataclasses.py @@ -30,7 +30,7 @@ class Props: return key in self.__data__ def get(self, key, d=None): - if key in self.__data__: + if key in self.__data__ and self.__data__[key] != "": return self.__data__[key] else: return d