From 09ecb9e8c3d908c67a0f43a5623f574f39fba1eb Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 7 Oct 2010 18:29:54 +0000 Subject: [PATCH] Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@291 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/bkmk_rsimple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 69636d9..c4a1664 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -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) -- 2.39.5