Use different names for unused variables

mypy flagged too many assignments to `_` which this commit fixes.
This commit is contained in:
Richard Bowman 2022-08-09 09:36:25 +01:00
parent a9fff24848
commit 5404521458

View file

@ -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: