Dont raise an error if domain has more than one subdomain and just return None
This commit is contained in:
parent
4be0e1ee7f
commit
ef6ccb330b
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue