소스 검색

If no capabilities, still return a tuple or we get unpacking fail

John Carr 16 년 전
부모
커밋
a33bb7ab2f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/protocol.py

+ 1 - 1
dulwich/protocol.py

@@ -97,7 +97,7 @@ class Protocol(object):
 
 def extract_capabilities(text):
     if not "\0" in text:
-        return text
+        return text, None
     capabilities = text.split("\0")
     return (capabilities[0], capabilities[1:])