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