Commit 31a59a31 authored by Romain Courteaud's avatar Romain Courteaud

Encode all not None values.

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