Skip to content

Commit 2351585

Browse files
committed
PCI IRQ: skip unavailable properties
1 parent 69d2523 commit 2351585

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "windows-multitool",
33
"private": true,
4-
"version": "0.2.3",
4+
"version": "0.2.4",
55
"type": "module",
66
"repo": "BoringBoredom/Windows-MultiTool",
77
"scripts": {

py/PCI_IRQs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def get_device_property(
116116
0,
117117
)
118118
last_error = GetLastError()
119-
# if last_error == ERROR_ELEMENT_NOT_FOUND:
120-
# return None
119+
if last_error == ERROR_ELEMENT_NOT_FOUND:
120+
return None
121121
if last_error != ERROR_INSUFFICIENT_BUFFER:
122122
raise WinError()
123123

0 commit comments

Comments
 (0)