From 32335282d920880ef89f7abe14855cbb27092138 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 23 Feb 2008 22:58:56 +0000 Subject: [PATCH] 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 --- Robots/parse_html.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5