From 54045214586838128300a1f3aa78c5e516f9de24 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 9 Aug 2022 09:36:25 +0100 Subject: [PATCH] Use different names for unused variables mypy flagged too many assignments to `_` which this commit fixes. --- openflexure_microscope/rescue/check_picamera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/rescue/check_picamera.py b/openflexure_microscope/rescue/check_picamera.py index e8a5a113..c9618f91 100644 --- a/openflexure_microscope/rescue/check_picamera.py +++ b/openflexure_microscope/rescue/check_picamera.py @@ -26,11 +26,11 @@ def main(): try: import picamerax - except Exception as _: # pylint: disable=W0703 + except Exception as _e: # pylint: disable=W0703 error_sources.append(PICAMERA_IMPORT_ERROR) else: try: - _ = picamerax.PiCamera() + _cam = picamerax.PiCamera() except picamerax.PiCameraError as e: msg = e.args[0] if msg in PICAMERA_ERROR_MAP: