Merge branch 'lash/local-dev-improve' of gitlab.com:grassrootseconomics/cic-internal-integration into lash/local-dev-improve

This commit is contained in:
nolash 2021-10-27 11:52:31 +02:00
commit 03d7518f8c
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ config.censor('PASSWORD', 'DATABASE')
config.censor('PASSWORD', 'SSL') config.censor('PASSWORD', 'SSL')
logg.debug(f'config loaded from {args.c}:\n{config}') logg.debug(f'config loaded from {args.c}:\n{config}')
dirs = initialize_dirs(args.import_dir, force_reset=args.f) dirs = initialize_dirs(args.import_dir)
valid_service_codes = config.get('USSD_SERVICE_CODE').split(",") valid_service_codes = config.get('USSD_SERVICE_CODE').split(",")

View File

@ -39,6 +39,6 @@ def initialize_dirs(user_dir, force_reset=False):
for d in dirs.keys(): for d in dirs.keys():
if d == 'old': if d == 'old':
continue continue
os.makedirs(dirs[d]) os.makedirs(dirs[d], exist_ok=True)
return dirs return dirs