What changed, and why it matters
This commit simplifies a custom camera error exception by removing a hard-coded user-facing error message. The exception still exists and will still be raised; it just no longer automatically includes the text 'Camera error. Check camera connections.' There is no security-relevant change visible in the diff.
No security action required. Reviewers may want to confirm that callers of `CameraConnectionError` still provide an appropriate message where needed, but this is a maintainability concern, not a security concern.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch changes CameraConnectionError from a class that overrides __init__ to inject a localized error message, to an empty exception class (pass). This is a code-cleanup/refactoring change. It does not alter control flow, add or remove error handling, change permissions, or affect cryptographic or secret-handling logic.
Changed components
src/seedsigner/hardware/camera.pyInspect captured patch +1 / −3
diff --git a/src/seedsigner/hardware/camera.py b/src/seedsigner/hardware/camera.py
index 865e1cd..44919fa 100644
--- a/src/seedsigner/hardware/camera.py
+++ b/src/seedsigner/hardware/camera.py
@@ -9,9 +9,7 @@ from seedsigner.models.singleton import Singleton
class CameraConnectionError(Exception):
- def __init__(self, *args, **kwargs):
- message = _("Camera error. Check camera connections.")
- super().__init__(message)
+ pass
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.