This was hiding an AttributeError being thrown on older versions of pycurl
(which did not expose the socket_action method).
while True:
try:
ret, num_handles = self._multi.socket_action(fd, action)
- except Exception, e:
+ except pycurl.error, e:
ret = e[0]
if ret != pycurl.E_CALL_MULTI_PERFORM:
break
try:
ret, num_handles = self._multi.socket_action(
pycurl.SOCKET_TIMEOUT, 0)
- except Exception, e:
+ except pycurl.error, e:
ret = e[0]
if ret != pycurl.E_CALL_MULTI_PERFORM:
break