ignore locale errors (fixes #15511)

This commit is contained in:
Benjamin Dauvergne 2017-03-20 13:37:48 +01:00
parent b5d9c12fe9
commit 8da1053e5a
1 changed files with 5 additions and 1 deletions

View File

@ -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)