Commit 8c4bbc69 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

OMEMO: Make return value consistent for request_devicelist()

Always return a list instead of in some cases None

Fixes #96
parent efd417bf
......@@ -173,7 +173,7 @@ class OMEMO:
raise StanzaMalformed('No list node found')
if not list_node.getChildren():
return None
return []
result = []
devices_nodes = list_node.getChildren()
......@@ -210,7 +210,7 @@ class OMEMO:
items_node = pubsub_node.getTag('items')
item = items_node.getTag('item')
if item is None:
return None
return []
try:
return self._parse_devicelist(item)
......
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