Disable VT100Session used before assignment lint error

This commit is contained in:
Andrew Kay 2024-10-07 18:50:29 -05:00
parent f863ec1261
commit a0020de250

View File

@ -79,6 +79,7 @@ def _create_session(args, device):
if args.emulator == 'vt100' and IS_VT100_AVAILABLE:
host_command = [args.command, *args.command_args]
# pylint: disable-next=possibly-used-before-assignment
return VT100Session(device, host_command)
raise ValueError('Unsupported emulator')