mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] small refactoring, remove useless exception
This commit is contained in:
parent
3b5b7a9ae6
commit
9b08afc118
1 changed files with 2 additions and 5 deletions
|
@ -347,10 +347,7 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
|
|||
'/home/yunohost.app'
|
||||
]
|
||||
|
||||
for folder in folders_to_create:
|
||||
try:
|
||||
os.listdir(folder)
|
||||
except OSError:
|
||||
for folder in filter(not os.path.exists, folders_to_create):
|
||||
os.makedirs(folder)
|
||||
|
||||
# Change folders permissions
|
||||
|
|
Loading…
Add table
Reference in a new issue