1
0
Fork 1
mirror of https://github.com/bookwyrm-social/bookwyrm.git synced 2025-04-23 02:34:19 +00:00

Merge pull request from mouse-reeve/search-webfinger-error

Gracefully handle errors in webfinger during search
This commit is contained in:
Mouse Reeve 2021-04-07 10:35:39 -07:00 committed by GitHub
commit 0b96713341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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