Message120891
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) |
|
Date |
User |
Action |
Args |
2010-11-09 19:31:45 | pje | set | recipients:
+ pje, jcea, eric.araujo |
2010-11-09 19:31:44 | pje | set | messageid: <1289331104.86.0.332942102504.issue10367@psf.upfronthosting.co.za> |
2010-11-09 19:31:41 | pje | link | issue10367 messages |
2010-11-09 19:31:41 | pje | create | |
|