only remove key key if exists

This commit is contained in:
ahmadbilalkhalid 2019-10-30 20:32:28 +05:00
parent 90f2b37084
commit eba92e5d67

View file

@ -13,7 +13,8 @@ class SpecificEtcdEntryBase:
def original_keys(self):
r = dict(self.__dict__)
del r["key"]
if "key" in r:
del r["key"]
return r
@property