LiquidGUI [1.0.1.3] Bugfix
- Added try block around device enumeration to catch unhandled exception.
This commit is contained in:
+8
-5
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user