From: Oleg Broytman Date: Thu, 7 Oct 2010 18:29:54 +0000 (+0000) Subject: Fixed a bug. X-Git-Tag: v4.5.3~85 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=09ecb9e8c3d908c67a0f43a5623f574f39fba1eb;p=bookmarks_db.git Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@291 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- 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)