diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-23 14:15:02 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-23 14:15:02 +0100 |
commit | 391f12eeab7ee624298fb7f6a15e3cb6582975e6 (patch) | |
tree | f6c8397ed97e80d12c1ebc1425b3a9271808d08a | |
parent | d008988843f61efb57cb06a30b8a47a357e248a4 (diff) | |
download | slixmpp-391f12eeab7ee624298fb7f6a15e3cb6582975e6.tar.gz slixmpp-391f12eeab7ee624298fb7f6a15e3cb6582975e6.tar.bz2 slixmpp-391f12eeab7ee624298fb7f6a15e3cb6582975e6.tar.xz slixmpp-391f12eeab7ee624298fb7f6a15e3cb6582975e6.zip |
Transform an if into an elif in cert parsing.
-rw-r--r-- | slixmpp/xmlstream/cert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/cert.py b/slixmpp/xmlstream/cert.py index d357b326..28ef585a 100644 --- a/slixmpp/xmlstream/cert.py +++ b/slixmpp/xmlstream/cert.py @@ -76,7 +76,7 @@ def extract_names(raw_cert): name_type = name.getName() if name_type == 'dNSName': results['DNS'].add(decode_str(name.getComponent())) - if name_type == 'uniformResourceIdentifier': + elif name_type == 'uniformResourceIdentifier': value = decode_str(name.getComponent()) if value.startswith('xmpp:'): results['URI'].add(value[5:]) |