handle empty input in print_colon_kv

pull/11/head
Rio Liu 2 years ago
parent 8f5a2803a6
commit 5bae89a9fd
  1. 3
      ceo/cli/utils.py

@ -28,6 +28,9 @@ def print_colon_kv(pairs: List[Tuple[str, str]]):
key1: value1
key1000: value2
"""
if len(pairs) == 0:
return
maxlen = max(len(key) for key, val in pairs)
for key, val in pairs:
if key != '':

Loading…
Cancel
Save