Skip to content
Snippets Groups Projects
Commit 8683c3bf authored by m431m's avatar m431m :speech_balloon:
Browse files

Fixed error: metadata cant be NoneType

parent b5fce733
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,8 @@ def get_metadata_keys(obj):
def set_metadata(obj, key, value):
# TODO: Fix this with upgrade to py3
if value is None:
return
try:
obj.setMetaData(key, value)
except UnicodeEncodeError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment