Remove unnecessary checks before calling os.makedirs (#62576)
This commit is contained in:
parent
1edfa2d426
commit
cb2c2d98c3
9 changed files with 9 additions and 17 deletions
|
@ -30,7 +30,7 @@ def run(args):
|
|||
# Test if configuration directory exists
|
||||
if not os.path.isdir(config_dir):
|
||||
print("Creating directory", config_dir)
|
||||
os.makedirs(config_dir)
|
||||
os.makedirs(config_dir, exist_ok=True)
|
||||
|
||||
config_path = asyncio.run(async_run(config_dir))
|
||||
print("Configuration file:", config_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue