try:
try:
self.start = int(time.time())
+ bookmark.icon = None
+
url_type, url_rest = urllib.splittype(bookmark.href)
url_host, url_path = urllib.splithost(url_rest)
url_path, url_tag = urllib.splittag(url_path)
content_type = headers["Content-Type"]
if content_type.startswith("image/"):
bookmark.icon = "data:%s;base64,%s" % (content_type, b64encode(icon))
- else:
- bookmark.icon = None
except KeyError:
pass