Mercurial > hg
changeset 32969:30d0cb279bac
py3: catch binascii.Error raised from binascii.unhexlify
Before Python 3, binsacii.unhexlify used to raise TypeError, now it raises
binascii.Error.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 20 Jun 2017 22:11:46 +0530 |
parents | 4107eb8a5648 |
children | 11c0bb4ccc76 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Jun 20 23:39:59 2017 -0700 +++ b/mercurial/revlog.py Tue Jun 20 22:11:46 2017 +0530 @@ -13,6 +13,7 @@ from __future__ import absolute_import +import binascii import collections import errno import hashlib @@ -1094,7 +1095,7 @@ if maybewdir: raise error.WdirUnsupported return None - except TypeError: + except (TypeError, binascii.Error): pass def lookup(self, id):