]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fixed a bug - break out of the loop after finding the first working charset.
authorOleg Broytman <phd@phdru.name>
Sat, 23 Feb 2008 22:58:56 +0000 (22:58 +0000)
committerOleg Broytman <phd@phdru.name>
Sat, 23 Feb 2008 22:58:56 +0000 (22:58 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@180 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html.py

index 72ca78292dc690e80666bef772edb1831b42d7e1..c05e66cce3a2ad394807b057e4071625f5390fcb 100755 (executable)
@@ -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: