mercurial/sslutil.py
changeset 29501 be68a4445041
parent 29500 4b16a5bd9948
parent 29460 a7d1532b26a1
child 29507 97dcdcf75f4f
--- a/mercurial/sslutil.py	Wed Jul 06 21:16:00 2016 -0700
+++ b/mercurial/sslutil.py	Mon Jul 11 08:54:13 2016 -0500
@@ -384,7 +384,7 @@
                 if _dnsnamematch(value, hostname):
                     return
             except wildcarderror as e:
-                return e.message
+                return e.args[0]
 
             dnsnames.append(value)
 
@@ -405,7 +405,7 @@
                         if _dnsnamematch(value, hostname):
                             return
                     except wildcarderror as e:
-                        return e.message
+                        return e.args[0]
 
                     dnsnames.append(value)