From 240283405e5389a77642ccfd68d619313142635e Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 7 May 2014 11:50:36 +0200 Subject: [PATCH] variable 'year' referenced before assignment --- couchpotato/core/plugins/scanner/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/core/plugins/scanner/main.py b/couchpotato/core/plugins/scanner/main.py index 3031236f..4304bdd2 100644 --- a/couchpotato/core/plugins/scanner/main.py +++ b/couchpotato/core/plugins/scanner/main.py @@ -843,6 +843,7 @@ class Scanner(Plugin): cleaned = ' '.join(re.split('\W+', simplifyString(release_name))) cleaned = re.sub(self.clean, ' ', cleaned) + year = None for year_str in [file_name, release_name, cleaned]: if not year_str: continue year = self.findYear(year_str)