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]"