]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/parse_html.py
Fixed a bug - break out of the loop after finding the first working charset.
[bookmarks_db.git] / 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: