From c4f30ca1565a7da4a5142a1c01322698f4f29071 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 3 Mar 2024 17:13:08 +0000 Subject: [PATCH] LiquidGUI [1.0.1.3] Bugfix - Added try block around device enumeration to catch unhandled exception. --- LiquidCTL_Helper.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/LiquidCTL_Helper.py b/LiquidCTL_Helper.py index bdbc518..174f658 100644 --- a/LiquidCTL_Helper.py +++ b/LiquidCTL_Helper.py @@ -8,11 +8,14 @@ class LiquidCTL_Helper(): device_fwVers = None devices = find_liquidctl_devices() - for dev in devices: - with dev.connect(): - #print(f'{dev.description}') - device_name = dev.description - device_fwVers = ''.join(map(str, dev.firmware_version)) + try: + for dev in devices: + with dev.connect(): + #print(f'{dev.description}') + device_name = dev.description + device_fwVers = ''.join(map(str, dev.firmware_version)) + except: + pass def ForceInit(self): init_status = self.dev.initialize()