[yum-commits] urlgrabber/grabber.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Wed Mar 28 15:23:36 UTC 2012
urlgrabber/grabber.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d6f84cf159f90401719b4010bfd923af1582bb9f
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Tue Mar 27 09:53:08 2012 +0200
Abort download when terminal got closed. BZ 806632.
Progress updates fail when stderr is not writable.
Do a clean abort instead of triggering an abrt report.
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 7224a55..c334242 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1754,7 +1754,7 @@ class PyCurlFileObject(object):
if self._prog_running:
downloaded += self._reget_length
self.opts.progress_obj.update(downloaded)
- except KeyboardInterrupt:
+ except (KeyboardInterrupt, IOError):
return -1
def _over_max_size(self, cur, max_size=None):
More information about the Yum-commits
mailing list