Skip to content

Commit

Permalink
More OHM init error fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabak committed Nov 27, 2020
1 parent a1fa5f0 commit 47c8d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RGBHardwareMonitor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from time import sleep
from typing import Optional

from RGBHardwareMonitor.hardware_monitor import HMNoSensorsError
from RGBHardwareMonitor.hardware_monitor import HMNoSensorsError, HMSensorNotFound
from . import runtime
from . import rgb_serial
from . import hardware_monitor
Expand Down Expand Up @@ -109,7 +109,7 @@ def real_main():
for _ in range(3):
try:
rgb_serial.rings = ring_lights_from_cfg(runtime.config)
except HMNoSensorsError as exc:
except (HMNoSensorsError, HMSensorNotFound) as exc:
init_exc = exc
sleeptime: float = 5.0
logger.debug(f'Got no sensors found error. OpenHardwareMonitor initializing? Retrying in {sleeptime}')
Expand Down

0 comments on commit 47c8d7e

Please sign in to comment.