From ca131073300d2daad9609e9ca883b6131b692026 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 10 Oct 2014 22:46:35 +0200 Subject: [PATCH] Ignore exceptions on removing db_backup stuff --- couchpotato/runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 36fc366f..b7803976 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -116,7 +116,8 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En # Delete non zip files if len(ints) != 1: - os.remove(os.path.join(root, backup_file)) + try: os.remove(os.path.join(root, backup_file)) + except: pass else: existing_backups.append((int(ints[0]), backup_file)) else: