]> thyrsus.com Git - freecode-submit.git/commitdiff
Response from a wrapped request may be empty, so don't try to posrse it.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 15 Oct 2010 06:12:36 +0000 (02:12 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 15 Oct 2010 06:12:36 +0000 (02:12 -0400)
freshmeat-submit

index 998a5bba148f6401b0605d8c42c1b1db25c7f113..77f2133f4b832d75023b69793822ee71397a41d1 100755 (executable)
@@ -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