From: Oleg Broytman Date: Sun, 8 Aug 2010 19:46:59 +0000 (+0000) Subject: Fixed a bug. X-Git-Tag: v4.5.3~134 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=873bef6eee6779bef3d44722b2966b182982683d;hp=194aa48e0b7f3b0a43f4689ff3bcd2f3512689b5;p=bookmarks_db.git Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@242 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index fa5139f..6ab5f3e 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -105,7 +105,7 @@ def parse_html(filename, charset=None, log=None): if meta_content: __charset = meta_content.lower().split('charset=')[1].split(';')[0] else: - meta_charset = False + __charset = False except IndexError: # No charset in the META Content-Type meta_charset = False else: