bug fix: if domain exists as cd

This commit is contained in:
usmannasir
2024-01-27 12:02:50 +05:00
parent fc2925e945
commit c083ec6203

View File

@@ -158,7 +158,11 @@ class virtualHostUtilities:
### create site if not there ### create site if not there
try: try:
website = Websites.objects.get(domain=Domain) website = Websites.objects.get(domain=Domain)
except:
try:
child = ChildDomains.objects.get(domain=Domain)
except: except:
DataToPass = {} DataToPass = {}