Skip to content
Snippets Groups Projects
Commit ff226f3f authored by Manuel Jacob's avatar Manuel Jacob
Browse files

gitdirstate: remove unnecessary except handler

The except handler re-raises the exception directly, so there’s no reason to
have it. In the past, this except handler had a special case for compatibility.
parent 672cd1c8
No related branches found
No related tags found
1 merge request!14py3 part 2
Pipeline #
......@@ -77,12 +77,7 @@
ignorefunc = matchmod.match(root, '', [], allpats)
except error.Abort:
for f, patlist in pats:
try:
matchmod.match(root, '', [], patlist)
except error.Abort as inst:
# in this case, patlist is ['include: FILE'], and
# inst[0] should already include FILE
raise
matchmod.match(root, '', [], patlist)
if extrapatterns:
try:
matchmod.match(root, '', [], extrapatterns)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment