Browse Source

fix keyerror if LANG is unset and fallback to UTF8.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
b735326cf5
  1. 4
      pyweb/mucli.py

4
pyweb/mucli.py

@ -107,10 +107,10 @@ else:
if options.encoding is None:
locale = os.environ['LANG']
try:
locale = os.environ['LANG']
_, options.encoding = locale.split('.')
except ValueError:
except KeyError, ValueError:
options.encoding = "UTF-8"

Loading…
Cancel
Save