Skip to content

Commit 4f67183

Browse files
authored
Merge pull request #22 from mdenzel/main
moved error check before using data
2 parents cb4ec03 + 982d15c commit 4f67183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smartie/scsi/windows.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def issue_command(
8989
None,
9090
)
9191

92-
self.parse_sense(bytearray(header_with_buffer.sense))
93-
9492
if result == 0:
9593
raise ctypes.WinError(ctypes.get_last_error())
94+
95+
self.parse_sense(bytearray(header_with_buffer.sense))
9696

9797
return SCSIResponse(
9898
succeeded=(

0 commit comments

Comments
 (0)