Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
8c4bbc69
by Philipp Hörist at 2020-01-26T21:11:12+01:00
1 changed file:
Changes:
| ... | ... | @@ -173,7 +173,7 @@ class OMEMO: |
| 173 | 173 |
raise StanzaMalformed('No list node found')
|
| 174 | 174 |
|
| 175 | 175 |
if not list_node.getChildren():
|
| 176 |
- return None
|
|
| 176 |
+ return []
|
|
| 177 | 177 |
|
| 178 | 178 |
result = []
|
| 179 | 179 |
devices_nodes = list_node.getChildren()
|
| ... | ... | @@ -210,7 +210,7 @@ class OMEMO: |
| 210 | 210 |
items_node = pubsub_node.getTag('items')
|
| 211 | 211 |
item = items_node.getTag('item')
|
| 212 | 212 |
if item is None:
|
| 213 |
- return None
|
|
| 213 |
+ return []
|
|
| 214 | 214 |
|
| 215 | 215 |
try:
|
| 216 | 216 |
return self._parse_devicelist(item)
|