Skip to content

hwPortUtils.listComPorts: Querying PortName can fail #6015

@jcsteh

Description

@jcsteh

Originally reported by @mohdshara in this nvda-devel thread.

It seems that some com ports don't have a PortName registry value:

ERROR - unhandled exception (15:22:32):
Traceback (most recent call last):
  File "gui\settingsDialogs.pyo", line 1537, in onDisplayNameChanged
  File "gui\settingsDialogs.pyo", line 1544, in updatePossiblePorts
  File "brailleDisplayDrivers\baum.pyo", line 117, in getPossiblePorts
  File "hwPortUtils.pyo", line 192, in listComPorts
WindowsError: [Error 2] The system cannot find the file specified

Unless I'm missing something, this is broken, but clearly, it can happen. I guess we should just catch the error and skip the port.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions