Commit e319f81f authored by John Kirkwood's avatar John Kirkwood

Add default sequence for max() in case there are no callables to list.

#2
parent 2965e48a
......@@ -18,7 +18,7 @@ class GroupDocDescriptor:
if '_doc' in obj.__dict__:
ret.append(obj._doc.strip() + '\n')
width = len(max(obj.keys(), key=len)) + 2
width = len(max(obj.keys(), key=len, default=[''])) + 2
for name, cmd in obj.items():
line = ' ' + ''.join([
cmd.color,
......
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