[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"
Changes by Priscila Manhaes : -- keywords: +patch Added file: http://bugs.python.org/file19690/10367.diff ___ Python tracker <http://bugs.python.org/issue10
[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"
Priscila Manhaes added the comment: Well, I fixed the problem moving the "if" that instances "result" even though it getting HTTPError into the "try". -- # send the data try: