From: Eric S. Raymond Date: Fri, 15 Oct 2010 06:12:36 +0000 (-0400) Subject: Response from a wrapped request may be empty, so don't try to posrse it. X-Git-Tag: 2.0~30 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ad62a0598ff0abd4521e5c39e32b9e8b582f5508;p=freecode-submit.git Response from a wrapped request may be empty, so don't try to posrse it. --- diff --git a/freshmeat-submit b/freshmeat-submit index 998a5bb..77f2133 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -82,7 +82,7 @@ class FreshmeatSession: handle = urllib2.urlopen(urllib2.Request(url=url, data=data, headers=headers)) if self.verbose: print handle.info() - content = json.loads(handle.read()) + content = handle.read() if self.verbose: print "Response:", content