Repository navigation
d3d12_guid_sites: a missing image or an unwritable --json report is one ERROR line, not a traceback - #5735
Closed
evilclanker9000 wants to merge 1 commit into
Closed
d3d12_guid_sites: a missing image or an unwritable --json report is one ERROR line, not a traceback#5735evilclanker9000 wants to merge 1 commit into
evilclanker9000 wants to merge 1 commit into
Conversation
…ne ERROR line, not a traceback The scan loop caught only ValueError/struct.error, so a missing, locked or folder image ended the whole run in a FileNotFoundError traceback, and the --json write did the same for a path in a missing folder. Both now print the one ERROR line and exit 2 that the sibling tools/d3d12_iid_scan.py prints.
Kam471
reviewed
Nov 23, 2026
Kam471
left a comment
Contributor
There was a problem hiding this comment.
Reviewed head 93eca2d (base 561b65a).
git diff --checkclean.python -I -m pytest tests/test_d3d12_guid_sites.py -q-> 9 passed.- Adds OSError -> one
ERROR: cannot read ...line, exit 2 for images, andERROR: cannot write ...for--json.
Verdict: close as duplicate. #5737 covers the same two hunks plus a missing --header, and both touch the same test-file insertion point and the same tool block, so they cannot merge cleanly together. Keep #5737.
Kam471
reviewed
Nov 23, 2026
Contributor
Author
|
Closing as a duplicate of #5737, which covers the same two hunks (missing image, unwritable AI-assisted. |
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tools/d3d12_guid_sites.pyended a whole run in a traceback on two file-I/O errors that are one line in the siblingtools/d3d12_iid_scan.py:scan()raisesOSError, butmain()caught only(ValueError, struct.error), so the run died inFileNotFoundErrorinsidescan()even when other images were listed;--jsonnaming a path in a folder that does not exist: the write was not guarded at all.Both now print one
ERROR: cannot read/write <path>: <reason>line and exit 2, the behaviourd3d12_iid_scan.py:168-170and:186-188already documents ("a missing, locked or folder image used to end the run in a traceback").Test
tests/test_d3d12_guid_sites.pygainstest_missing_image_is_one_error_lineandtest_json_in_a_missing_folder_is_one_error_line; both build their PE32+ fixtures by hand, no game files and no SDK needed. The same two tests are the ones that fail without the change:CLI, before and after (missing image, exit code from
subprocess):python -m compileall -q tools testspasses.No GPU needed.
Notes
tools/d3d12_iid_scan.pyinstead of inventing a new message, so the two GUID tools report a bad path the same way.== <name>: skipped (...)line and exit 0, unchanged.AI-assisted.