From cb679d859981ef8cfed1b8bd659f418808cf6364 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 9 May 2020 20:29:05 +0200 Subject: [PATCH] Fediverse: Bug fixes. --- plugins/Fediverse/activitypub.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/Fediverse/activitypub.py b/plugins/Fediverse/activitypub.py index 97373d0fe..c552b7e08 100644 --- a/plugins/Fediverse/activitypub.py +++ b/plugins/Fediverse/activitypub.py @@ -30,7 +30,6 @@ import json import base64 -import hashlib import functools import contextlib import urllib.parse @@ -93,11 +92,9 @@ def sandbox(f): cn=f.__name__ ) except (commands.ProcessTimeoutError, MemoryError): - raise utils.web.Error( - _( - "Page is too big or the server took " - "too much time to answer the request." - ) + raise web.Error( + "Page is too big or the server took " + "too much time to answer the request." ) return newf @@ -174,7 +171,6 @@ def _signed_request(url, headers, data=None): method = "get" if data is None else "post" instance_actor_url = get_instance_actor_url() - assert instance_actor_url if instance_actor_url: signed_headers = [ (