Skip to content

Commit d5df08e

Browse files
author
Ekultek
committed
fix for issue NullArray#1060
1 parent e37765e commit d5df08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/term/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
562562
print(self.do_load_custom_hosts.__doc__)
563563
except TypeError:
564564
pass
565-
if len(choice_data_list) == 1:
565+
if choice_data_list is not None and len(choice_data_list) == 1:
566566
lib.output.error("must provide full path to file after `{}` keyword".format(choice))
567567
else:
568568
self.do_load_custom_hosts(choice_data_list[-1])

0 commit comments

Comments
 (0)