Better error handling in broadcaster

This commit is contained in:
Mouse Reeve
2020-01-29 15:55:48 -08:00
parent fa0f37fb0f
commit 9f0bcd8152
3 changed files with 22 additions and 6 deletions

View File

@ -62,7 +62,9 @@ def handle_outgoing_follow(user, to_follow):
'object': to_follow.actor,
}
broadcast(user, activity, [to_follow.inbox])
errors = broadcast(user, activity, [to_follow.inbox])
for error in errors:
raise(error['error'])
def handle_shelve(user, book, shelf):