xmpppy doesn't raise exceptions!
This commit is contained in:
parent
976cd12eef
commit
4c1fdb1fd8
|
@ -225,15 +225,14 @@ class ConnectionCaps(object):
|
||||||
caps=presence.getTag('c')
|
caps=presence.getTag('c')
|
||||||
if not caps: return
|
if not caps: return
|
||||||
|
|
||||||
try:
|
|
||||||
node, ver=caps['node'], caps['ver']
|
node, ver=caps['node'], caps['ver']
|
||||||
except KeyError:
|
if node is None or ver is None:
|
||||||
# improper caps in stanza, ignoring
|
# improper caps in stanza, ignoring
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
exts=caps['ext'].split(' ')
|
exts=caps['ext'].split(' ')
|
||||||
except KeyError:
|
except AttributeError:
|
||||||
# no exts means no exts, a perfectly valid case
|
# no exts means no exts, a perfectly valid case
|
||||||
exts=[]
|
exts=[]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue