diff options
Diffstat (limited to 'urwid/util.py')
-rw-r--r-- | urwid/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/util.py b/urwid/util.py index ced247e..4e71f97 100644 --- a/urwid/util.py +++ b/urwid/util.py @@ -45,7 +45,7 @@ def detect_encoding(): except locale.Error: pass return locale.getlocale()[1] or "" - except ValueError, e: + except ValueError as e: # with invalid LANG value python will throw ValueError if e.args and e.args[0].startswith("unknown locale"): return "" |