mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 08:34:43 +00:00
Ignore broken locale configuration.
This commit is contained in:
parent
3dd35c57a8
commit
22a4d48d68
1 changed files with 2 additions and 2 deletions
|
|
@ -136,8 +136,8 @@ def get_locale ():
|
|||
@rtype (string, string)"""
|
||||
try:
|
||||
loc, encoding = locale.getdefaultlocale()
|
||||
except ValueError, msg:
|
||||
print >>sys.stderr, "Error getting default locale:", msg
|
||||
except ValueError:
|
||||
# locale configuration is broken - ignore that
|
||||
loc, encoding = None, None
|
||||
if loc is None:
|
||||
loc = "C"
|
||||
|
|
|
|||
Loading…
Reference in a new issue