[issue21776] distutils.upload uses the wrong order of exceptions

2016-06-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Claudiu. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue21776] distutils.upload uses the wrong order of exceptions

2016-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17e7d6c4f082 by Berker Peksag in branch '3.5': Issue #21776: distutils.upload now correctly handles HTTPError https://hg.python.org/cpython/rev/17e7d6c4f082 New changeset 421bc6ae9b6f by Berker Peksag in branch 'default': Issue #21776: Merge from 3.

[issue21776] distutils.upload uses the wrong order of exceptions

2016-01-20 Thread Berker Peksag
Berker Peksag added the comment: Lib/distutils/command/upload.py has changed a bit after d86214c98a9c. Here is an updated patch. -- nosy: +berker.peksag stage: -> patch review versions: +Python 3.6 Added file: http://bugs.python.org/file41669/issue21776_v2.diff ___

[issue21776] distutils.upload uses the wrong order of exceptions

2014-06-16 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. Currently, distutils.command.upload has this code: try: result = urlopen(request) status = result.getcode() reason = result.msg except OSError as e: self.announce(str(e), log.ERROR) return except HTTPError as e: status = e.code re