Patchwork D7286: match: suppress error about subscripting an exception

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:35 a.m.
Message ID <076f0ab66d3aa12cad1d7ec7ec440aa7@localhost.localdomain>
Download mbox | patch
Permalink /patch/42883/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:35 a.m.
Closed by commit rHG6ff196d2553b: match: suppress error about subscripting an exception (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7286?vs=17671&id=17700

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7286/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7286

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -345,7 +345,10 @@ 
                 ):
                     kindpats.append((k, p, source or pat))
             except error.Abort as inst:
-                raise error.Abort(b'%s: %s' % (pat, inst[0]))
+                raise error.Abort(
+                    b'%s: %s'
+                    % (pat, inst[0])  # pytype: disable=unsupported-operands
+                )
             except IOError as inst:
                 if warn:
                     warn(