Skip to content

Commit

Permalink
Make exception handler more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Sep 10, 2023
1 parent 8e44095 commit 9fa5f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hid_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self, loop: asyncio.AbstractEventLoop):
try:
with open(DEVICES_CONFIG_FILE_NAME) as devices_config:
self.devices_config: Dict[str, Dict[str, object]] = json.load(devices_config)
except:
except Exception:
self.devices_config = {}
self.devices: List[_Device] = []
self.capturing_devices: Dict[str, HIDDevice] = {}
Expand Down

0 comments on commit 9fa5f71

Please sign in to comment.