Kaynağa Gözat

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

John Carr 16 yıl önce
ebeveyn
işleme
a33bb7ab2f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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:])