summaryrefslogtreecommitdiffstats
path: root/users/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-19 13:38:25 -0700
committerAndrew Godwin2022-11-19 13:38:25 -0700
commit6e79527bb5743481148f492274b7a19da057366c (patch)
tree344a2080cf5d5f38996a9f991732da98aa33ac5f /users/models
parent774e91c8a24b85130eb61f2eebf9834ac38fa468 (diff)
downloadtakahe-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.py2
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(