Merge branch 'lash/local-dev-improve' of gitlab.com:grassrootseconomics/cic-internal-integration into lash/local-dev-improve
This commit is contained in:
commit
03d7518f8c
@ -72,7 +72,7 @@ config.censor('PASSWORD', 'DATABASE')
|
||||
config.censor('PASSWORD', 'SSL')
|
||||
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(",")
|
||||
|
||||
|
@ -39,6 +39,6 @@ def initialize_dirs(user_dir, force_reset=False):
|
||||
for d in dirs.keys():
|
||||
if d == 'old':
|
||||
continue
|
||||
os.makedirs(dirs[d])
|
||||
os.makedirs(dirs[d], exist_ok=True)
|
||||
|
||||
return dirs
|
||||
|
Loading…
Reference in New Issue
Block a user