py: cam: Cleanups

No functional changes. Drop unused variables, reduce typechecker
warnings.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Tomi Valkeinen 2022-05-27 17:44:20 +03:00 committed by Laurent Pinchart
parent 56f9de149f
commit ed0d3a9d71
3 changed files with 5 additions and 18 deletions

View file

@ -304,7 +304,7 @@ def event_handler(state):
running = any(ctx['reqs-completed'] < ctx['opt-capture'] for ctx in contexts)
return running
except Exception as e:
except Exception:
traceback.print_exc()
return False