git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@240
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
meta = head.find(_find_contenttype, recursive=False)
if meta:
try:
- __charset = meta.get("content").lower().split('charset=')[1].split(';')[0]
+ meta_content = meta.get("content")
+ if meta_content:
+ __charset = meta_content.lower().split('charset=')[1].split(';')[0]
+ else:
+ meta_charset = False
except IndexError: # No charset in the META Content-Type
meta_charset = False
else: