This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pje
Recipients eric.araujo, jcea, pje
Date 2010-11-09.19:31:41
SpamBayes Score 0.008124138
Marked as misclassified No
Message-id <1289331104.86.0.332942102504.issue10367@psf.upfronthosting.co.za>
In-reply-to
Content
To better show what the problem is, here's a change that would fix the problem (albeit in an ugly way):

--- upload.py   2010-07-07 20:16:33.000000000 -0400
+++ /home/pje/upload.new        2010-11-09 14:30:21.000000000 -0500
@@ -167,6 +167,9 @@
 
         request = Request(self.repository, data=body,
                           headers=headers)
+
+        result = None
+
         # send the data
         try:
             result = urlopen(request)
@@ -186,4 +189,4 @@
             self.announce('Upload failed (%s): %s' % (status, reason),
                           log.ERROR)
         if self.show_response:
-            self.announce('-'*75, result.read(), '-'*75)
+            self.announce('-'*75, result.read() if result is not None else 'ERROR', '-'*75)
History
Date User Action Args
2010-11-09 19:31:45pjesetrecipients: + pje, jcea, eric.araujo
2010-11-09 19:31:44pjesetmessageid: <1289331104.86.0.332942102504.issue10367@psf.upfronthosting.co.za>
2010-11-09 19:31:41pjelinkissue10367 messages
2010-11-09 19:31:41pjecreate