]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fixed a bug.
authorOleg Broytman <phd@phdru.name>
Thu, 7 Oct 2010 18:29:54 +0000 (18:29 +0000)
committerOleg Broytman <phd@phdru.name>
Thu, 7 Oct 2010 18:29:54 +0000 (18:29 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@291 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index 69636d9ef09044905962a3930fc8789e32b45ebc..c4a16644a468925a2a68248fdc195973b2cc9dfe 100644 (file)
@@ -105,6 +105,7 @@ icons = {} # Icon cache; maps URL to a tuple (content type, data)
 
 class robot_simple(Robot):
    def check_url(self, bookmark):
+      fname = None
       try:
          self.start = int(time.time())
          bookmark.icon = None
@@ -240,7 +241,6 @@ class robot_simple(Robot):
                         else:
                            self.log("   no icon        : bad content type '%s'" % content_type)
                            icons[icon] = None
-                        os.remove(icon_fname)
 
             except KeyError, key:
                self.log("   no header: %s" % key)