[PATCH STABLE] sslutil: don't access message attribute in exception (issue5285)

Yuya Nishihara yuya at tcha.org
Sun Jul 3 06:50:04 EDT 2016


On Sat, 02 Jul 2016 09:42:57 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1467477700 25200
> #      Sat Jul 02 09:41:40 2016 -0700
> # Branch stable
> # Node ID d52f1b12afc3c3d2107d45a3113af62c12182102
> # Parent  ddbff1435e7baf66efc67c4d2a733f8035cd53d8
> sslutil: don't access message attribute in exception (issue5285)

Queued for stable, thanks.

>              except wildcarderror as e:
> -                return e.message
> +                return e.args[0]

Nit for the previous patch: our coding style says exception classes are
CamelCased.

https://www.mercurial-scm.org/wiki/CodingStyle#Classes


More information about the Mercurial-devel mailing list