瀏覽代碼

fix TypeError in _ParamikoWrapper
cannot concatenate 'str' and 'NoneType' objects

Filipp Frizzy 7 年之前
父節點
當前提交
af470bb3e5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/contrib/paramiko_vendor.py

+ 1 - 1
dulwich/contrib/paramiko_vendor.py

@@ -97,7 +97,7 @@ class _ParamikoWrapper(object):
 
 
         # Closed socket
         # Closed socket
         if not data:
         if not data:
-            return
+            return b''
 
 
         # Read more if needed
         # Read more if needed
         if n and data_len < n:
         if n and data_len < n: