Skip to content

Commit 47b616d

Browse files
committed
Clean up, check for no node given
1 parent c6c7bdb commit 47b616d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Pilot1/Uno/topN_to_uno.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,11 @@ def show_list(L):
322322

323323
def show(args):
324324
"""Simply show the entry for this node"""
325+
if args.node is None:
326+
print("Provide a node to show!")
327+
exit(1)
325328
plan_dict = read_plan(args.plan, args.node)
326-
print(str(plan_dict))
329+
# print(str(plan_dict))
327330
val_cells = plan_dict['val'][0]['cell']
328331
print("val cells: count: %i" % len(val_cells))
329332
show_list(val_cells)

0 commit comments

Comments
 (0)