From a42f3e4d9c48532bb6cae53e218bf633116b9e5f Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 18 Apr 2012 22:54:50 +0200 Subject: [PATCH] ref before assigned. fixes #106 --- couchpotato/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 217f52b..66d9d7d 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -52,7 +52,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En locale.setlocale(locale.LC_ALL, "") encoding = locale.getpreferredencoding() except (locale.Error, IOError): - pass + encoding = None # for OSes that are poorly configured I'll just force UTF-8 if not encoding or encoding in ('ANSI_X3.4-1968', 'US-ASCII', 'ASCII'):