From patchwork Wed Feb 7 22:41:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1996: wireproto: remove unnecessary exception trapping From: phabricator X-Patchwork-Id: 27437 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 7 Feb 2018 22:41:14 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGae79cf6f9c82: wireproto: remove unnecessary exception trapping (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1996?vs=5135&id=5304 REVISION DETAIL https://phab.mercurial-scm.org/D1996 AFFECTED FILES mercurial/wireproto.py CHANGE DETAILS To: indygreg, #hg-reviewers, durin42 Cc: mercurial-devel diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -914,11 +914,8 @@ proto.redirect() - try: - r = repo.pushkey(encoding.tolocal(namespace), encoding.tolocal(key), - encoding.tolocal(old), new) or False - except error.Abort: - r = False + r = repo.pushkey(encoding.tolocal(namespace), encoding.tolocal(key), + encoding.tolocal(old), new) or False output = proto.restore()