mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-26 01:20:28 +00:00
Update manage.py
This commit is contained in:
parent
bdd9e7f3c2
commit
d6d4adc1d2
1 changed files with 5 additions and 2 deletions
|
@ -560,8 +560,11 @@ def app_domain_delete(app_id, domain):
|
|||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "")
|
||||
else:
|
||||
raise CommandException(code, message, "")
|
||||
old_all_domains = get_all_domains(app_id)
|
||||
|
||||
if domain is None or domain == "undefined":
|
||||
raise CommandException(const.ERROR_CLIENT_PARAM_BLANK, "Domains is blank", "")
|
||||
|
||||
old_all_domains = get_all_domains(app_id)
|
||||
if domain not in old_all_domains:
|
||||
myLogger.info_logger("delete domain is not binded")
|
||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "Domain is not bind.", "")
|
||||
|
|
Loading…
Reference in a new issue