mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
fix bug
This commit is contained in:
parent
6eebb8229f
commit
b6e3af45e9
@ -184,7 +184,8 @@ async def _(
|
||||
problem_image: Message = Arg("problem_image"),
|
||||
):
|
||||
try:
|
||||
if word_type == "正则":
|
||||
if word_type == "正则" and problem:
|
||||
problem = unescape(problem)
|
||||
try:
|
||||
re.compile(problem)
|
||||
except re.error:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user