url_path, url_tag = urllib.splittag(url_path)
url = "%s://%s%s" % (url_type, url_host, url_path)
- headers, content, error = self.get(bookmark, url, True)
+ error, headers, content = self.get(bookmark, url, True)
if error:
bookmark.error = error
-
- if content is None:
return 1
size = 0
_icon_url = icon_url
for i in range(8):
try:
- icon_headers, icon_data, error = self.get(bookmark, _icon_url)
+ error, icon_headers, icon_data = self.get(bookmark, _icon_url)
except RedirectException, e:
_icon_url = e.url
self.log(" redirect to : %s" % _icon_url)
content = infile.read()
infile.close()
- return headers, content, None
+ return None, headers, content
except IOError, msg:
if (msg[0] == "http error") and (msg[1] == -1):
error = get_error(msg)
self.log(' Error: %s' % error)
- return None, None, error
+ return error, None, None
def get_ftp_welcome(self):
global ftpcache_key