Skip to content

Commit 3b5817d

Browse files
committed
feat: throw HdcError for function
1 parent 9a4a820 commit 3b5817d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

hmdriver2/hdc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def list_devices() -> List[str]:
4646
if line.__contains__('Empty'):
4747
continue
4848
devices.append(line.strip())
49+
50+
if result.exit_code != 0:
51+
raise HdcError("HDC error", result.error)
52+
4953
return devices
5054

5155

0 commit comments

Comments
 (0)