From d386b584839879f104625950ffe2931d0a72862d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 8 Jan 2008 11:21:52 +0000 Subject: [PATCH] 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 --- Robots/parse_html_beautifulsoup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2