# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1583493193 -3600
#      Fri Mar 06 12:13:13 2020 +0100
# Node ID ff226f3f5ec2a51ce144e999486fc9e7b94df0d5
# Parent  672cd1c822b2f40dbaa9ebbb51975e8be349e242
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.

diff --git a/hggit/gitdirstate.py b/hggit/gitdirstate.py
--- a/hggit/gitdirstate.py
+++ b/hggit/gitdirstate.py
@@ -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)