forked from blizzthewolf/SeaCogs
fix(pterodactyl): maybe?
This commit is contained in:
parent
2e4b664760
commit
97213a5025
1 changed files with 5 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue