bugfix
This commit is contained in:
parent
aff73f193a
commit
c8ff8f551e
@ -75,10 +75,9 @@ class DictObject(dict):
|
||||
self[attr] = value
|
||||
|
||||
def get(self, k, defv=None):
|
||||
try:
|
||||
v = self.__getitem__(k)
|
||||
return v
|
||||
except:
|
||||
if self.has(k):
|
||||
return self[k]
|
||||
else:
|
||||
return defv
|
||||
|
||||
def copy(self):
|
||||
|
Loading…
Reference in New Issue
Block a user