From 2e93687bb44374339d62b5093819678c1080e0e5 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 13 Aug 2013 17:46:41 +0200 Subject: [PATCH] Don't try to loop over empty enablers --- couchpotato/core/providers/automation/itunes/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/automation/itunes/main.py b/couchpotato/core/providers/automation/itunes/main.py index 14ca2a82..8e352370 100644 --- a/couchpotato/core/providers/automation/itunes/main.py +++ b/couchpotato/core/providers/automation/itunes/main.py @@ -31,7 +31,7 @@ class ITunes(Automation, RSS): for url in urls: index += 1 - if not enablers[index]: + if len(enablers) == 0 or len(enablers) < index or not enablers[index]: continue try: