Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/modules/omemo.py
    ... ... @@ -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)