]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rsimple.py
Fixed a bug.
[bookmarks_db.git] / 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)