Gracefully handle errors in webfinger during search

This commit is contained in:
Mouse Reeve 2021-04-07 09:17:04 -07:00
parent 1aa4530933
commit e3d01c6736

View file

@ -138,7 +138,7 @@ def handle_remote_webfinger(query):
user = activitypub.resolve_remote_id(
link["href"], model=models.User
)
except KeyError:
except (KeyError, activitypub.ActivitySerializerError):
return None
return user