diff options
author | Andrew Godwin | 2022-11-19 13:38:25 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-19 13:38:25 -0700 |
commit | 6e79527bb5743481148f492274b7a19da057366c (patch) | |
tree | 344a2080cf5d5f38996a9f991732da98aa33ac5f /users/models | |
parent | 774e91c8a24b85130eb61f2eebf9834ac38fa468 (diff) | |
download | takahe-6e79527bb5743481148f492274b7a19da057366c.tar.gz takahe-6e79527bb5743481148f492274b7a19da057366c.tar.bz2 takahe-6e79527bb5743481148f492274b7a19da057366c.zip |
A few more fixes from going live
Diffstat (limited to 'users/models')
-rw-r--r-- | users/models/identity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/users/models/identity.py b/users/models/identity.py index 21912ac..53b6f80 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -162,6 +162,8 @@ class Identity(StatorModel): actor_uri, handle = async_to_sync(cls.fetch_webfinger)( f"{username}@{domain}" ) + if handle is None: + return None username, domain = handle.split("@") domain = Domain.get_remote_domain(domain) return cls.objects.create( |