From e256d7cd15432552b0eeea9e836ea7684420f5d8 Mon Sep 17 00:00:00 2001 From: Frisk Date: Sun, 15 Sep 2024 19:41:16 +0200 Subject: [PATCH] Fixed previous fix --- src/queue_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/queue_handler.py b/src/queue_handler.py index d997355..2e78119 100644 --- a/src/queue_handler.py +++ b/src/queue_handler.py @@ -16,6 +16,8 @@ class UpdateDB: def json(self): def remove_webhooks(arg): + if not isinstance(arg, str): + return arg re_match = re.match(r"^(\d{17,20})/[a-zA-Z0-9_-]{68}$", arg) if re_match is not None: return f"{re_match.group(1)}/[CENSORED DISCORD WEBHOOK TOKEN]"