Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-15 14:15:42 +08:00 committed by GitHub
parent d10d2724df
commit f1e19e767f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -555,7 +555,8 @@ def app_domain_delete(app_id, domains):
myLogger.info_logger(proxy)
domains_old = proxy["domain_names"]
for domain in domains:
domains_old.remove(domain)
if domain in domains_old:
domains_old.remove(domain)
if len(domains_old) == 0:
proxy_id = proxy["id"]
token = get_token()