mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-15 03:44:49 +08:00
测测你的
This commit is contained in:
parent
db6045ced7
commit
da2b28c27d
@ -714,6 +714,7 @@ linglun_convert = on_alconna(
|
||||
Option(
|
||||
"-fa|--forward-axis", default="z+", args=Args["forward-axis", str, "z+"]
|
||||
),
|
||||
Option("--debug", default=False, action=store_true),
|
||||
),
|
||||
# permission=SUPERUSER,
|
||||
)
|
||||
@ -770,6 +771,7 @@ async def _(
|
||||
"height-limit": 32,
|
||||
"author": "Eilles",
|
||||
"forward-axis": "z+",
|
||||
"debug": False,
|
||||
}
|
||||
for arg in _args.keys():
|
||||
_args[arg] = (
|
||||
@ -1137,6 +1139,8 @@ async def _(
|
||||
buffer.write(
|
||||
"[ERROR] {}\n".format(e).replace(str(Path(__file__).parent.resolve()), "[]")
|
||||
)
|
||||
if _args["debug"]:
|
||||
raise e
|
||||
|
||||
sys.stdout = sys.__stdout__
|
||||
sys.stderr = sys.__stderr__
|
||||
|
Loading…
Reference in New Issue
Block a user