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):