ignore locale errors (fixes #15511)
This commit is contained in:
parent
b5d9c12fe9
commit
8da1053e5a
|
@ -40,7 +40,11 @@ def get_config(path=None):
|
|||
|
||||
|
||||
def main2():
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except locale.Error:
|
||||
# current locale does not exist
|
||||
pass
|
||||
parser = argparse.ArgumentParser(description='Export W.C.S. data as a star schema in a '
|
||||
'postgresql DB', add_help=False)
|
||||
parser.add_argument('config_path', nargs='?', default=None)
|
||||
|
|
Loading…
Reference in New Issue