Commit 67b2d483 authored by Romain Courteaud's avatar Romain Courteaud

Do not encode None value.

parent ac66550a
...@@ -61,10 +61,10 @@ class SoftwareInstance(Item): ...@@ -61,10 +61,10 @@ class SoftwareInstance(Item):
key = element.get('id').encode("UTF-8") key = element.get('id').encode("UTF-8")
value = result_dict.get(key, None) value = result_dict.get(key, None)
if value is not None: if value is not None:
value = value + ' ' + element.text value = (value + ' ' + element.text).encode("UTF-8")
else: else:
value = element.text value = element.text
result_dict[key] = value.encode("UTF-8") result_dict[key] = value
return result_dict return result_dict
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
......
287 288
\ No newline at end of file \ No newline at end of file
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