From: Oleg Broytman Date: Tue, 8 Jan 2008 11:21:52 +0000 (+0000) Subject: Do not return an empty string - pass it to BSoupParser. X-Git-Tag: v4.5.3~220 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d386b584839879f104625950ffe2931d0a72862d;p=bookmarks_db.git Do not return an empty string - pass it to BSoupParser. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@156 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index 62ef277..730e263 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -67,7 +67,7 @@ def parse_html(filename, charset=None): try: title = head.title.string.encode(_charset) except AttributeError: - return '' # HEAD but no TITLE + title = '' # HEAD but no TITLE meta = head.find(_find_refresh, recursive=False) if meta: