Explicitly add CameraConnectionError as our UnhandledExceptionView screenshot
What changed, and why it matters
This is a tiny change to a test screenshot generator. It swaps one fake error message used for generating documentation screenshots for another fake error message. There is no change to the actual application code that users run, and no security relevance.
No action needed. This is a non-security test-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies tests/screenshot_generator/generator.py, changing the sample error passed to UnhandledExceptionView in a screenshot-generation test from a generic IndexError to a CameraConnectionError. This is purely a test/data fixture update for UI screenshot generation. No runtime code, exception handling, or camera logic is altered.
Changed components
tests/screenshot_generator/generator.pyInspect captured patch +1 / −1
diff --git a/tests/screenshot_generator/generator.py b/tests/screenshot_generator/generator.py
index 2cc2095..2d3bbaf 100644
--- a/tests/screenshot_generator/generator.py
+++ b/tests/screenshot_generator/generator.py
@@ -414,7 +414,7 @@ def generate_screenshots(locale):
],
"Misc Error Views": [
ScreenshotConfig(NotYetImplementedView),
- ScreenshotConfig(UnhandledExceptionView, dict(error=["IndexError", "line 1, in some_buggy_code.py", "list index out of range"])),
+ ScreenshotConfig(UnhandledExceptionView, dict(error=["CameraConnectionError", "camera.py, 44, in start_video_stream_mode", "Camera error. Check camera connection."])),
ScreenshotConfig(NetworkMismatchErrorView, dict(derivation_path="m/84'/1'/0'")),
ScreenshotConfig(OptionDisabledView, dict(settings_attr=SettingsConstants.SETTING__MESSAGE_SIGNING)),
ScreenshotConfig(scan_views.ScanInvalidQRTypeView)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.