From 97213a502547c129980618dfd66fe336568eec42 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 21:14:10 -0500 Subject: [PATCH] fix(pterodactyl): maybe? --- pterodactyl/pterodactyl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index c00c077..405bc06 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -121,8 +121,11 @@ class Pterodactyl(commands.Cog): regex = await self.config.chat_regex() self.logger.debug(regex) self.logger.debug('1') - self.logger.debug(re.match(regex, text)) - match: Optional[re.Match[str]] = re.match(regex, text) + try: + match: Optional[re.Match[str]] = re.match(regex, text) + except Exception: + self.logger.exception("1.5") + raise self.logger.debug('2') if match: self.logger.debug('3')