Commit 7859ef2e authored by Philipp Arras's avatar Philipp Arras
Browse files

Add helpful error message

parent ece8b5f5
Pipeline #85114 passed with stages
in 13 minutes and 45 seconds
......@@ -74,6 +74,9 @@ class DomainTuple(object):
"""
if isinstance(domain, DomainTuple):
return domain
from .multi_domain import MultiDomain
if isinstance(domain, MultiDomain):
raise TypeError("Cannot create DomainTuple from MultiDomain")
domain = DomainTuple._parse_domain(domain)
obj = DomainTuple._tupleCache.get(domain)
if obj is not None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment