From b66bfdcab9162cb18c92ce5af28cc74301bf3402 Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 6 Jul 2022 05:01:48 -0400 Subject: [PATCH] sanitize.with_sigalrm_timeout: functools.wrap fix. --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 77443e810..2f14b084c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -172,7 +172,7 @@ def with_sigalrm_timeout(timeout: int): raise Exception("Timeout") def inner(func): - @functools.wraps(inner) + @functools.wraps(func) def wrapped(*args, **kwargs): signal.signal(signal.SIGALRM, sig_handler) signal.alarm(timeout)