From: Oleg Broytman Date: Sat, 23 Feb 2008 22:58:56 +0000 (+0000) Subject: Fixed a bug - break out of the loop after finding the first working charset. X-Git-Tag: v4.5.3~196 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=32335282d920880ef89f7abe14855cbb27092138;p=bookmarks_db.git Fixed a bug - break out of the loop after finding the first working charset. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@180 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html.py b/Robots/parse_html.py index 72ca782..c05e66c 100755 --- a/Robots/parse_html.py +++ b/Robots/parse_html.py @@ -63,6 +63,7 @@ def parse_html(filename, charset=None, log=None): for c in charsets: try: parser = p(filename, c) + break except UnicodeEncodeError: pass if parser: