Browse Source

Fix tests.

Jelmer Vernooij 2 years ago
parent
commit
8f8e6f9131
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/refs.py

+ 1 - 1
dulwich/refs.py

@@ -239,7 +239,7 @@ class RefsContainer(object):
         for key in keys:
             try:
                 ret[key] = self[(base + b"/" + key).strip(b"/")]
-            except SymrefLoop:
+            except (SymrefLoop, KeyError):
                 continue  # Unable to resolve
 
         return ret