mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
fixes key signing try/except
This commit is contained in:
parent
d6d16f4096
commit
b1ea495d17
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ def shared_inbox(request):
|
||||||
digest.update(comparison_string.encode())
|
digest.update(comparison_string.encode())
|
||||||
try:
|
try:
|
||||||
signer.verify(digest, signature)
|
signer.verify(digest, signature)
|
||||||
except:
|
except ValueError:
|
||||||
# TODO: what kind of error does this throw?
|
|
||||||
return HttpResponseUnauthorized()
|
return HttpResponseUnauthorized()
|
||||||
|
|
||||||
if activity['type'] == 'Add':
|
if activity['type'] == 'Add':
|
||||||
|
|
Loading…
Reference in a new issue