bug fixed

This commit is contained in:
2023-01-29 13:02:43 +08:00
parent 032bbb81c4
commit 8b9d9a78a3
6 changed files with 52 additions and 69 deletions

View File

@ -1,5 +1,5 @@
from rich.console import Console
from exceptions import *
from .exceptions import *
from typing import Any, Literal, Optional, TextIO
MainConsole = Console()
@ -138,10 +138,11 @@ def format_ipt(
*extraArg: 对于函数的其他参数"""
while True:
result = ipt(notice)
# noinspection PyBroadException
try:
fun_result = fun(result, *extraArg)
break
except BaseError:
except:
prt(err_note)
continue
return result, fun_result