mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] domain remove if an app without a domain is installed
This commit is contained in:
parent
42bc8c354a
commit
a11654e0cf
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ def domain_remove(operation_logger, domain, force=False):
|
|||
|
||||
# Check if apps are installed on the domain
|
||||
app_settings = [_get_app_settings(app) for app in _installed_apps()]
|
||||
if any(s["domain"] == domain for s in app_settings):
|
||||
if any("domain" in s and s["domain"] == domain for s in app_settings):
|
||||
raise YunohostError('domain_uninstall_app_first')
|
||||
|
||||
operation_logger.start()
|
||||
|
|
Loading…
Add table
Reference in a new issue