fix issue introduced in 72f3b2b
This commit is contained in:
parent
72f3b2bb17
commit
38fd1d3ad7
|
@ -53,7 +53,7 @@ class StateObject(netlib.basetypes.Serializable):
|
||||||
state = state.copy()
|
state = state.copy()
|
||||||
for attr, cls in six.iteritems(self._stateobject_attributes):
|
for attr, cls in six.iteritems(self._stateobject_attributes):
|
||||||
val = state.pop(attr)
|
val = state.pop(attr)
|
||||||
if state.get(attr) is None:
|
if val is None:
|
||||||
setattr(self, attr, val)
|
setattr(self, attr, val)
|
||||||
else:
|
else:
|
||||||
curr = getattr(self, attr)
|
curr = getattr(self, attr)
|
||||||
|
|
Loading…
Reference in New Issue