match: suppress error about subscripting an exception
I get the sense I should file a bug about subscripting Exception subclasses.
Differential Revision: https://phab.mercurial-scm.org/D7286
--- a/mercurial/match.py Wed Nov 06 15:35:44 2019 -0500
+++ b/mercurial/match.py Wed Nov 06 15:42:12 2019 -0500
@@ -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(