Use different names for unused variables
mypy flagged too many assignments to `_` which this commit fixes.
This commit is contained in:
parent
a9fff24848
commit
5404521458
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue