Skip to content
Snippets Groups Projects
Commit 4c1fdb1f authored by Liorithiel's avatar Liorithiel
Browse files

xmpppy doesn't raise exceptions!

parent 976cd12e
No related branches found
No related tags found
No related merge requests found
......@@ -225,15 +225,14 @@ class ConnectionCaps(object):
caps=presence.getTag('c')
if not caps: return
try:
node, ver=caps['node'], caps['ver']
except KeyError:
node, ver=caps['node'], caps['ver']
if node is None or ver is None:
# improper caps in stanza, ignoring
return
try:
exts=caps['ext'].split(' ')
except KeyError:
except AttributeError:
# no exts means no exts, a perfectly valid case
exts=[]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment