diff --git a/selfprivacy_api/utils/__init__.py b/selfprivacy_api/utils/__init__.py index faf97ce..ba49dd3 100644 --- a/selfprivacy_api/utils/__init__.py +++ b/selfprivacy_api/utils/__init__.py @@ -145,7 +145,9 @@ def check_if_subdomain_is_taken(subdomain: str) -> bool: with ReadUserData() as data: for module in data["modules"]: if ( - data["modules"][module].get("subdomain", DEFAULT_SUBDOMAINS.get(module, "")) + data["modules"][module].get( + "subdomain", DEFAULT_SUBDOMAINS.get(module, "") + ) == subdomain ): return True