Skip to content

Commit a4c9fb8

Browse files
committed
bugfix
1 parent 19eca04 commit a4c9fb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mytonctrl/mytonctrl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ def mode_status(ton, args):
527527
table = [["Name", "Status", "Description"]]
528528
for mode_name in modes:
529529
mode = get_mode(mode_name)
530+
if mode is None:
531+
color_print(f"{{red}}Mode {mode_name} not found{{endc}}")
532+
continue
530533
status = color_text('{green}enabled{endc}' if modes[mode_name] else '{red}disabled{endc}')
531534
table.append([mode_name, status, mode.description])
532535
print_table(table)

0 commit comments

Comments
 (0)