From 2bf933d089aab42983e6c35686bbac351560f747 Mon Sep 17 00:00:00 2001 From: Pewpews Date: Sat, 16 Jan 2016 01:14:42 +0100 Subject: [PATCH] tweaks; --- version/gallerydb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/version/gallerydb.py b/version/gallerydb.py index 77bc9b4..6b8aa68 100644 --- a/version/gallerydb.py +++ b/version/gallerydb.py @@ -310,6 +310,8 @@ def clear_thumb(path): try: if not os.path.samefile(path, app_constants.NO_IMAGE_PATH): os.unlink(path) + except FileNotFoundError: + pass except: log.exception('Failed to delete thumb {}'.format(os.path.split(path)[1].encode(errors='ignore')))