From 46da9c491abfc57544827eff29bd27afda5734c8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 13 Oct 2008 14:19:36 +0200 Subject: [PATCH] fix moveCache --- oxdbarchive/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index e3f3c3c..e284ac5 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -478,7 +478,8 @@ class ArchiveFile(SQLObject): os.rename(join(self.stillFolder_old, f), join(self.stillFolder, f)) os.rename(self.mini_movie_file_old, self.mini_movie_file) os.rename(self.timelineFile_old, self.timelineFile) - os.rename(self.posterStillFile_old, self.posterStillFile) + if os.path.exists(self.posterStillFile_old): + os.rename(self.posterStillFile_old, self.posterStillFile) def removeMiniMovie(self): if exists(self.mini_movie_file):