From fc2cd296e4a3e2c0f27e6197ef4906864df4cf8f Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Wed, 20 Sep 2017 22:49:38 -0400 Subject: [PATCH] Fixing a bug --- rtv/theme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtv/theme.py b/rtv/theme.py index fb13cb5..d1fd348 100644 --- a/rtv/theme.py +++ b/rtv/theme.py @@ -535,8 +535,8 @@ class ThemeList(object): # Try to find the starting index key = (theme.source, theme.name) - for i, theme in enumerate(self.themes): - if (theme.source, theme.name) == key: + for i, val in enumerate(self.themes): + if (val.source, val.name) == key: index = i break else: