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')