ref before assigned. fixes #106
This commit is contained in:
1 parent
994b19aa13
commit
a42f3e4d9c
1 file changed
+1
-1
@@ -52,7 +52,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
|
|||||||
locale.setlocale(locale.LC_ALL, "")
|
locale.setlocale(locale.LC_ALL, "")
|
||||||
encoding = locale.getpreferredencoding()
|
encoding = locale.getpreferredencoding()
|
||||||
except (locale.Error, IOError):
|
except (locale.Error, IOError):
|
||||||
pass
|
encoding = None
|
||||||
|
|
||||||
# for OSes that are poorly configured I'll just force UTF-8
|
# 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'):
|
if not encoding or encoding in ('ANSI_X3.4-1968', 'US-ASCII', 'ASCII'):
|
||||||
|
|||||||
Reference in new issue
Block a user