fix(pterodactyl): maybe?

This commit is contained in:
Seaswimmer 2024-02-29 21:14:10 -05:00
parent 2e4b664760
commit 97213a5025
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

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