Fix __setattr__ behaviour for empty names
parent
10246f0713
commit
6883cb203d
|
@ -121,6 +121,9 @@ class AquisitionProxy:
|
|||
return v
|
||||
|
||||
def __setattr__(self,name,value):
|
||||
if name == "":
|
||||
raise AttributeError("attributes need to have a name!")
|
||||
|
||||
setattr( object.__getattribute__( self, "_o"), name, value )
|
||||
|
||||
def __delattr__(self,name):
|
||||
|
|
Loading…
Reference in New Issue