Skip to content

Commit

Permalink
Fix line lengths and white space (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Jun 6, 2024
1 parent 8b672d2 commit 2cd9c63
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sksurgerynditracker/nditracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,20 @@ def _get_serial_port_name(configuration):
print("Probing port: ", serial_port, " got name: ", name,
" Result: ", result, file=fileout)
else:
raise IOError(f'Could not connect to serial port {serial_port} '
f'as there are only {len(serial_ports)} ports available.'
raise IOError(f'Could not connect to serial port'
f'{serial_port} as there are '
f'only {len(serial_ports)} ports available.'
+ serial_connection_errmsg)

if isinstance(serial_port, str):
name = serial_port
result = ndicapy.ndiProbe(name)
print("Probing port: ", name,
" Result: ", result, file=fileout)

if result != ndicapy.NDI_OKAY:
raise IOError(f'Could not connect to an NDI device on the chosen port, {serial_port}.'
raise IOError(f'Could not connect to an NDI device on '
f'the chosen port, {serial_port}.'
+ serial_connection_errmsg)
return name

Expand Down

0 comments on commit 2cd9c63

Please sign in to comment.