diff options
author | Valentina Mukhamedzhanova <vmukhame@redhat.com> | 2014-02-04 10:11:58 +0100 |
---|---|---|
committer | Valentina Mukhamedzhanova <vmukhame@redhat.com> | 2014-02-04 10:11:58 +0100 |
commit | bf0a0be71373dec515bbb54e0613a3b9b0c00b04 (patch) | |
tree | beafc70fe07e5235d2e1a4fa03737cef28994118 | |
parent | fbc995805e9d860366c67819effc3bc7d5d8a8b2 (diff) | |
download | urlgrabber-bf0a0be71373dec515bbb54e0613a3b9b0c00b04.tar.gz |
Treat curl errcodes 42, 55, 66 as Ctrl-C BZ#1017491
-rw-r--r-- | urlgrabber/grabber.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py index 04f1179..f8deeb8 100644 --- a/urlgrabber/grabber.py +++ b/urlgrabber/grabber.py @@ -1517,7 +1517,7 @@ class PyCurlFileObject(object): err.url = errurl raise err - elif errcode == 42: + elif errcode in (42, 55, 56): # this is probably wrong but ultimately this is what happens # we have a legit http code and a pycurl 'writer failed' code # which almost always means something aborted it from outside |