Update dataclasses.py

Returns also None when returned string is empty

This change is to address issue #68
This commit is contained in:
avollkopf 2021-04-11 10:44:16 +02:00
parent e89c42f5dd
commit 55953539da

View file

@ -30,7 +30,7 @@ class Props:
return key in self.__data__ return key in self.__data__
def get(self, key, d=None): def get(self, key, d=None):
if key in self.__data__: if key in self.__data__ and self.__data__[key] != "":
return self.__data__[key] return self.__data__[key]
else: else:
return d return d