Fediverse: Fix Python 3.4 compatibility.

This commit is contained in:
Valentin Lorentz 2020-05-09 20:42:38 +02:00
parent 79f13f3051
commit 76950126b5
1 changed files with 2 additions and 2 deletions

View File

@ -85,11 +85,11 @@ def sandbox(f):
return commands.process( return commands.process(
f, f,
*args, *args,
**kwargs,
timeout=10, timeout=10,
heap_size=100 * 1024 * 1024, heap_size=100 * 1024 * 1024,
pn="Fediverse", pn="Fediverse",
cn=f.__name__ cn=f.__name__,
**kwargs
) )
except (commands.ProcessTimeoutError, MemoryError): except (commands.ProcessTimeoutError, MemoryError):
raise web.Error( raise web.Error(