Skip to content

Commit c68b20d

Browse files
committed
fix printing controllers_list
1 parent 69a87e6 commit c68b20d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ def print_controllers_list(self, args):
4848
old_controllers = self.ton.GetSettings("old_controllers")
4949
user_controllers_list = self.ton.GetSettings("user_controllers_list")
5050
print("using controllers:")
51-
self.print_controllers_list_process(using_controllers)
52-
if new_controllers != using_controllers:
51+
if using_controllers is not None:
52+
self.print_controllers_list_process(using_controllers)
53+
if new_controllers is not None and new_controllers != using_controllers:
5354
print()
5455
print("new controllers:")
5556
self.print_controllers_list_process(new_controllers)

0 commit comments

Comments
 (0)