소스 검색

Fix tests.

Jelmer Vernooij 2 년 전
부모
커밋
8f8e6f9131
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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