create_realm: Fix copy/paste error in assertion message.

This commit is contained in:
Alex Vandiver
2023-11-29 01:51:10 +00:00
committed by Tim Abbott
parent b68cb5b049
commit 6ecfbd2ae8

View File

@@ -168,7 +168,7 @@ def do_create_realm(
) -> Realm:
if string_id in [settings.SOCIAL_AUTH_SUBDOMAIN, settings.SELF_HOSTING_MANAGEMENT_SUBDOMAIN]:
raise AssertionError(
"Creating a realm on SOCIAL_AUTH_SUBDOMAIN or SOCIAL_AUTH_SUBDOMAIN is not allowed!"
"Creating a realm on SOCIAL_AUTH_SUBDOMAIN or SELF_HOSTING_MANAGEMENT_SUBDOMAIN is not allowed!"
)
if Realm.objects.filter(string_id=string_id).exists():
raise AssertionError(f"Realm {string_id} already exists!")