git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@155
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
- _charset = root.originalEncoding
- title = root.html.head.title.string.encode(_charset)
except AttributeError:
return None
except AttributeError:
return None
- meta = root.html.head.find(_find_refresh, recursive=False)
+ _charset = root.originalEncoding
+ try:
+ title = head.title.string.encode(_charset)
+ except AttributeError:
+ return '' # HEAD but no TITLE
+
+ meta = head.find(_find_refresh, recursive=False)
if meta:
refresh = meta.get("content")
else:
refresh = None
if meta:
refresh = meta.get("content")
else:
refresh = None
- meta = root.html.head.find(_find_icon, recursive=False)
+ meta = head.find(_find_icon, recursive=False)
if meta:
icon = meta.get("href")
else:
if meta:
icon = meta.get("href")
else: