]> git.phdru.name Git - bookmarks_db.git/commitdiff
Initialize parser.icon in case there are no <link> tags.
authorOleg Broytman <phd@phdru.name>
Wed, 10 Oct 2007 14:32:49 +0000 (14:32 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 10 Oct 2007 14:32:49 +0000 (14:32 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@78 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html.py

index 57ad6a0cf69c89247281700915ced9854a3ef8ba..d2ca6567fe319a4866b348c81ca5e13a65b3d0ee 100755 (executable)
@@ -33,6 +33,7 @@ class HTMLParser(_HTMLParser):
       self.meta_charset = 0
       self.title = ''
       self.refresh = ''
+      self.icon = None
 
    def end_head(self):
       raise HTMLHeadDone()