Show error when actor.load() fails
This commit is contained in:
parent
f84b48adbe
commit
441a58125a
1 changed files with 3 additions and 2 deletions
|
@ -69,10 +69,11 @@ class Module(ModuleManager.BaseModule):
|
|||
actor_url = ap_utils.find_actor(username, instance)
|
||||
|
||||
if not actor_url:
|
||||
raise utils.EventError("Failed to find actor")
|
||||
raise utils.EventError("Failed to find user")
|
||||
|
||||
actor = ap_actor.Actor(actor_url)
|
||||
actor.load()
|
||||
if not actor.load():
|
||||
raise utils.EventError("Failed to find user")
|
||||
items = actor.outbox.load()
|
||||
|
||||
if not items:
|
||||
|
|
Loading…
Reference in a new issue