Ver Fonte

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

John Carr há 16 anos atrás
pai
commit
a33bb7ab2f
1 ficheiros alterados com 1 adições e 1 exclusões
  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:])