From 7c38ad1c0088e6e8480b8f3adb8863462ba715d0 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 23 Jan 2013 22:23:52 +0100 Subject: [PATCH] Remove non-int backup folders. closes #1298 --- couchpotato/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 7062c75..97d15a5 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -98,7 +98,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En total_backups = len(backups) for backup in backups: if total_backups > 3: - if int(os.path.basename(backup)) < time.time() - 259200: + if tryInt(os.path.basename(backup)) < time.time() - 259200: for src_file in src_files: b_file = os.path.join(backup, os.path.basename(src_file)) if os.path.isfile(b_file):