Merge pull request #900 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