From 441a58125a581858b572326255b24126530db7da Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 17 Sep 2019 17:41:40 +0100 Subject: [PATCH] Show error when actor.load() fails --- modules/fediverse/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/fediverse/__init__.py b/modules/fediverse/__init__.py index 6e5ef5bc..dd465d6b 100644 --- a/modules/fediverse/__init__.py +++ b/modules/fediverse/__init__.py @@ -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: