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,6 +13,7 @@ class SpecificEtcdEntryBase:
def original_keys(self):
r = dict(self.__dict__)
if "key" in r:
del r["key"]
return r