cli/query: bugfix, convert output to list (#170)
* cli/query: bugfix, convert output to list to keep it backwards compatible
This commit is contained in:
parent
fa7474c087
commit
43cfb2742f
1 changed files with 2 additions and 1 deletions
|
@ -460,8 +460,9 @@ def query_hpi_functions(
|
|||
elif output == 'pprint':
|
||||
from pprint import pprint
|
||||
|
||||
pprint(res)
|
||||
pprint(list(res))
|
||||
else:
|
||||
res = list(res) # type: ignore[assignment]
|
||||
# output == 'repl'
|
||||
eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n")
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue