format and paginate return values in admin eval
This commit is contained in:
parent
fac4fec25f
commit
0093c92a7e
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ async def admin_eval(ctx, *, body: str):
|
||||||
paginator.add_line(line)
|
paginator.add_line(line)
|
||||||
paginator.close_page()
|
paginator.close_page()
|
||||||
if ret:
|
if ret:
|
||||||
for line in str(ret).split("\n"):
|
for line in pprint.pformat(ret).split("\n"):
|
||||||
paginator.add_line(line)
|
paginator.add_line(line)
|
||||||
paginator.close_page()
|
paginator.close_page()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue