Fediverse: Bug fixes.

This commit is contained in:
Valentin Lorentz 2020-05-09 20:29:05 +02:00
parent d20bdbb5b7
commit cb679d8599

View File

@ -30,7 +30,6 @@
import json import json
import base64 import base64
import hashlib
import functools import functools
import contextlib import contextlib
import urllib.parse import urllib.parse
@ -93,12 +92,10 @@ def sandbox(f):
cn=f.__name__ cn=f.__name__
) )
except (commands.ProcessTimeoutError, MemoryError): except (commands.ProcessTimeoutError, MemoryError):
raise utils.web.Error( raise web.Error(
_(
"Page is too big or the server took " "Page is too big or the server took "
"too much time to answer the request." "too much time to answer the request."
) )
)
return newf return newf
@ -174,7 +171,6 @@ def _signed_request(url, headers, data=None):
method = "get" if data is None else "post" method = "get" if data is None else "post"
instance_actor_url = get_instance_actor_url() instance_actor_url = get_instance_actor_url()
assert instance_actor_url
if instance_actor_url: if instance_actor_url:
signed_headers = [ signed_headers = [
( (