On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,

so just continue testing. Fixes #668787.
This commit is contained in:
Jack Jansen 2003-01-15 23:43:02 +00:00
parent c9083b66bd
commit 8834009338
1 changed files with 2 additions and 1 deletions

View File

@ -31,8 +31,9 @@ import logging, logging.handlers, logging.config
try: try:
locale.setlocale(locale.LC_ALL, '') locale.setlocale(locale.LC_ALL, '')
except ValueError: except (ValueError, locale.Error):
# this happens on a Solaris box which only supports "C" locale # this happens on a Solaris box which only supports "C" locale
# or a Mac OS X box which supports very little locale stuff at all
pass pass
BANNER = "-- %-10s %-6s ---------------------------------------------------\n" BANNER = "-- %-10s %-6s ---------------------------------------------------\n"