Explorar el Código

Update connection.py

fix the second exception syntax error
zlk1983 hace 5 años
padre
commit
ce9f1fa1b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      fdfs_client/connection.py

+ 1 - 1
fdfs_client/connection.py

@@ -185,7 +185,7 @@ def tcp_recv_response(conn, bytes_size, buffer_size = 1024):
             response += resp
             total_size += len(resp)
             
-    except (socket.error, socket.timeout), e:
+    except (socket.error, socket.timeout) as e:
             raise ConnectionError('[-] Error: while reading from socket: (%s)' \
                                     % e.args)
     return (response, total_size)