From ed4db2aa45be7e37e9c065d8683d88cb6d056579 Mon Sep 17 00:00:00 2001 From: Tom Chapin Date: Mon, 12 Feb 2024 18:53:41 -0800 Subject: [PATCH] removing unnecessary hasattr check --- 01OS/01OS/clients/base_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01OS/01OS/clients/base_device.py b/01OS/01OS/clients/base_device.py index 7ed3542..bc87d89 100644 --- a/01OS/01OS/clients/base_device.py +++ b/01OS/01OS/clients/base_device.py @@ -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()