forked from mirrors/bookwyrm
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())
|
||||
try:
|
||||
signer.verify(digest, signature)
|
||||
except:
|
||||
# TODO: what kind of error does this throw?
|
||||
except ValueError:
|
||||
return HttpResponseUnauthorized()
|
||||
|
||||
if activity['type'] == 'Add':
|
||||
|
|
Loading…
Reference in a new issue