Fix reference-after-use bug.
This commit is contained in:
parent
4b12bc589e
commit
fde31b69a8
@ -111,8 +111,8 @@ def modifiable_element_for_existance_in_set(container, set_name, element):
|
||||
return (set_name in container) and (element in container[set_name])
|
||||
|
||||
def setter():
|
||||
logging.debug(" add({} {} {})".format(container, set_name, element))
|
||||
nonlocal container, set_name, element
|
||||
logging.debug(" add({} {} {})".format(container, set_name, element))
|
||||
return container[set_name].add(element)
|
||||
|
||||
return ModifiableProperty(
|
||||
|
Loading…
Reference in New Issue
Block a user