Dont raise an error if domain has more than one subdomain and just return None

This commit is contained in:
rllola 2019-04-18 15:27:49 +02:00
parent 4be0e1ee7f
commit ef6ccb330b

View file

@ -75,7 +75,8 @@ class SiteManagerPlugin(object):
domain_array = domain.split(".")
if len(domain_array) > 2:
raise Error("Too many subdomains! Can only handle one level (eg. staging.mixtape.bit)")
log("Too many subdomains! Can only handle one level (eg. staging.mixtape.bit)")
return None
subdomain = ""
if len(domain_array) == 1: