diff --git a/confluent_client/confluent/screensqueeze.py b/confluent_client/confluent/screensqueeze.py index 0b863102..6e8f0c99 100644 --- a/confluent_client/confluent/screensqueeze.py +++ b/confluent_client/confluent/screensqueeze.py @@ -69,8 +69,11 @@ class ScreenPrinter(object): columns = [self.nodelist[x:x+currheight] for x in range(0, len(self.nodelist), currheight)] for currow in range(0, len(columns[0])): for col in columns: - node = col[currow] - sys.stdout.write(fieldformat.format(node, self.nodeoutput[node])) + try: + node = col[currow] + sys.stdout.write(fieldformat.format(node, self.nodeoutput[node])) + except IndexError: + break sys.stdout.write('\n') else: for node in self.nodelist: