do not fetch catalogs registered with no url (#1535)

Do not fetch catalogs registered with no `url`
This commit is contained in:
Axolotle 2022-11-19 18:53:54 +01:00 committed by GitHub
parent 079c3fab00
commit 07d61a83ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,6 +173,9 @@ def _update_apps_catalog():
mkdir(APPS_CATALOG_CACHE, mode=0o750, parents=True, uid="root")
for apps_catalog in apps_catalog_list:
if apps_catalog["url"] is None:
continue
apps_catalog_id = apps_catalog["id"]
actual_api_url = _actual_apps_catalog_api_url(apps_catalog["url"])