mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +01:00
Fediverse: Bug fixes.
This commit is contained in:
parent
d20bdbb5b7
commit
cb679d8599
@ -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,11 +92,9 @@ 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 = [
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user