Commit daedfe3c authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix division by 0 bug

parent 3c9f216e
......@@ -276,9 +276,11 @@ def print_items(
:param page_size: (int) show results in pages of page_size items, enter to
continue
"""
if not items:
return
if not (isinstance(items, dict) or isinstance(items, list) or isinstance(
items, tuple)):
_print('%s' % items if items is not None else '')
_print('%s' % items)
return
page_size = int(page_size)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment