removing unnecessary hasattr check
This commit is contained in:
parent
0b47293681
commit
ed4db2aa45
|
@ -180,7 +180,7 @@ class Device:
|
|||
|
||||
if key == keyboard.Key.space:
|
||||
self.toggle_recording(False)
|
||||
elif CAMERA_ENABLED and hasattr(key, 'char') and key == keyboard.KeyCode.from_char('c'):
|
||||
elif CAMERA_ENABLED and key == keyboard.KeyCode.from_char('c'):
|
||||
self.fetch_image_from_camera()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue