mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix use case of app_fetchlist with url=None
This commit is contained in:
parent
cea5c81e92
commit
a974d08897
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def app_fetchlist(url=None, name=None):
|
||||||
name -- Name of the list
|
name -- Name of the list
|
||||||
url -- URL of remote JSON list
|
url -- URL of remote JSON list
|
||||||
"""
|
"""
|
||||||
if not url.endswith(".json"):
|
if url and not url.endswith(".json"):
|
||||||
raise YunohostError("This is not a valid application list url. It should end with .json.")
|
raise YunohostError("This is not a valid application list url. It should end with .json.")
|
||||||
|
|
||||||
# If needed, create folder where actual appslists are stored
|
# If needed, create folder where actual appslists are stored
|
||||||
|
|
Loading…
Add table
Reference in a new issue