What changed, and why it matters
This commit removes two redundant import statements inside a camera driver file. The same class (CameraConnectionError) is already available in the module, so the local imports were unnecessary. There is no security-relevant change.
No security action needed; this is a routine code-cleanup change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes two from seedsigner.hardware.camera import CameraConnectionError lines from within exception handlers in src/seedsigner/hardware/camera.py. Because the code is already inside seedsigner.hardware.camera, CameraConnectionError is directly in scope, making the imports redundant. No logic, error handling, or trust boundary changes.
Changed components
src/seedsigner/hardware/camera.pyInspect captured patch +0 / −2
diff --git a/src/seedsigner/hardware/camera.py b/src/seedsigner/hardware/camera.py
index f1c09b2..865e1cd 100644
--- a/src/seedsigner/hardware/camera.py
+++ b/src/seedsigner/hardware/camera.py
@@ -40,7 +40,6 @@ class Camera(Singleton):
self._video_stream.start()
except PiCameraError:
# This error most often occurs because the camera connection is loose
- from seedsigner.hardware.camera import CameraConnectionError
raise CameraConnectionError()
@@ -74,7 +73,6 @@ class Camera(Singleton):
self._picamera.start_preview()
except PiCameraError:
# This error most often occurs because the camera connection is loose
- from seedsigner.hardware.camera import CameraConnectionError
raise CameraConnectionError()
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.