# HG changeset patch # User Gregory Szorc # Date 1467477700 25200 # Node ID a7d1532b26a17bbaace43124cd415dcb709b08e2 # Parent ddbff1435e7baf66efc67c4d2a733f8035cd53d8 sslutil: don't access message attribute in exception (issue5285) I should have ran the entire test suite on Python 2.6. Since the hostname matching tests are implemented in Python (not .t tests), it didn't uncover this warning. I'm not sure why - warnings should be printed regardless. This is possibly a bug in the test runner. But that's for another day... diff -r ddbff1435e7b -r a7d1532b26a1 mercurial/sslutil.py --- a/mercurial/sslutil.py Fri Jul 01 15:12:33 2016 -0500 +++ b/mercurial/sslutil.py Sat Jul 02 09:41:40 2016 -0700 @@ -236,7 +236,7 @@ if _dnsnamematch(value, hostname): return except wildcarderror as e: - return e.message + return e.args[0] dnsnames.append(value) @@ -257,7 +257,7 @@ if _dnsnamematch(value, hostname): return except wildcarderror as e: - return e.message + return e.args[0] dnsnames.append(value)