Fix use case of app_fetchlist with url=None

This commit is contained in:
Alexandre Aubin 2019-03-08 01:22:32 +01:00
parent cea5c81e92
commit a974d08897

View file

@ -97,7 +97,7 @@ def app_fetchlist(url=None, name=None):
name -- Name of the 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.")
# If needed, create folder where actual appslists are stored