Merge pull request #26204 from cogk/fix-typo-install_apps-might-be-none

chore(new_site): Avoid iterating None
This commit is contained in:
Akhil Narang 2024-04-29 17:35:37 +05:30 committed by GitHub
commit b28cc5ca5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ def _new_site(
mariadb_user_host_login_scope=mariadb_user_host_login_scope,
)
apps_to_install = ["frappe"] + (frappe.conf.get("install_apps") or []) + (list(install_apps) or [])
apps_to_install = ["frappe"] + (frappe.conf.get("install_apps") or []) + (list(install_apps or []))
for app in apps_to_install:
# NOTE: not using force here for 2 reasons: