Commit 505e07a6 authored by Arkadiusz Janz's avatar Arkadiusz Janz

set_attribute fixes

parent fe947b88
...@@ -87,7 +87,7 @@ def set_attribute(token, key, value): ...@@ -87,7 +87,7 @@ def set_attribute(token, key, value):
if not token.has_metadata(): if not token.has_metadata():
token.create_metadata() token.create_metadata()
metadata = token.get_metadata() metadata = token.get_metadata()
metadata.set_attribute(_try_encode(key), _try_encode(value)) metadata.set_attribute(key, value)
def set_attributes(token, items): def set_attributes(token, items):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment