mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] exception should only be used for exceptional situations and not when buildin functions allow you to do the expected stuff
This commit is contained in:
parent
d9081bddef
commit
97128d7d63
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ def app_fetchlist(url=None, name=None):
|
|||
|
||||
"""
|
||||
# Create app path if not exists
|
||||
try: os.listdir(repo_path)
|
||||
except OSError: os.makedirs(repo_path)
|
||||
if not os.path.exists(repo_path):
|
||||
os.makedirs(repo_path)
|
||||
|
||||
if url is None:
|
||||
url = 'https://app.yunohost.org/official.json'
|
||||
|
|
Loading…
Add table
Reference in a new issue