diff --git a/boards/utils.py b/boards/utils.py --- a/boards/utils.py +++ b/boards/utils.py @@ -154,6 +154,9 @@ def get_domain(url: str) -> str: Gets domain from an URL with random number of domain levels. """ levels = url.split('.') + if len(levels) < 2: + return url + top = levels[-1] second = levels[-2]