From afd6fd98f6f4fd102e36f7c9f52d6c635eaf68fe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 19 Feb 2022 23:44:23 +0200 Subject: [PATCH] dfg --- files/helpers/sanitize.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b94c5082b..87b08e3e4 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -298,11 +298,13 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): return sanitized - +def handler2(signum, frame): + print("Forever is over!") + raise Exception("end of time") def filter_emojis_only(title, edit=False, graceful=False): - signal.signal(signal.SIGALRM, handler) + signal.signal(signal.SIGALRM, handler2) signal.alarm(1) if title.count(':') > 100: abort(418)