Better error handling in broadcaster
This commit is contained in:
parent
fa0f37fb0f
commit
9f0bcd8152
3 changed files with 22 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue