fix bug with a missed .read()

This commit is contained in:
2015-08-19 21:57:35 +08:00
parent 0d42e46897
commit e4c6f752d0

View File

@@ -80,7 +80,7 @@ class FccSubmitter(object):
def get_link(self, project, package):
try:
link = http_GET(makeurl(self.apiurl,['source', project, package, '_link']))
link = http_GET(makeurl(self.apiurl,['source', project, package, '_link'])).read()
except (urllib2.HTTPError, urllib2.URLError):
return None
return ET.fromstring(link)