Resolve creation of phone dir when it already exists.

This commit is contained in:
PhilipWafula 2021-10-27 11:43:35 +03:00
parent 4391fa3aff
commit 16153df2f0
Signed by untrusted user: mango-habanero
GPG Key ID: B00CE9034DA19FB7

View File

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