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
|
device_fwVers = None
|
||||||
|
|
||||||
devices = find_liquidctl_devices()
|
devices = find_liquidctl_devices()
|
||||||
for dev in devices:
|
try:
|
||||||
with dev.connect():
|
for dev in devices:
|
||||||
#print(f'{dev.description}')
|
with dev.connect():
|
||||||
device_name = dev.description
|
#print(f'{dev.description}')
|
||||||
device_fwVers = ''.join(map(str, dev.firmware_version))
|
device_name = dev.description
|
||||||
|
device_fwVers = ''.join(map(str, dev.firmware_version))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def ForceInit(self):
|
def ForceInit(self):
|
||||||
init_status = self.dev.initialize()
|
init_status = self.dev.initialize()
|
||||||
|
|||||||
Reference in New Issue
Block a user