diff --git a/src/smfc.py b/src/smfc.py index 951f3ce..8d1ec4d 100755 --- a/src/smfc.py +++ b/src/smfc.py @@ -1013,10 +1013,11 @@ def check_dependencies(self) -> str: # Scan HWMON configuration for dependencies. hwmon_str = self.config[HdZone.CS_HD_ZONE].get(HdZone.CV_HD_ZONE_HWMON_PATH) - if "\n" in hwmon_str: - hwmon_path = hwmon_str.splitlines() - else: - hwmon_path = hwmon_str.split() + if hwmon_str: + if "\n" in hwmon_str: + hwmon_path = hwmon_str.splitlines() + else: + hwmon_path = hwmon_str.split() if hwmon_path: for path in hwmon_path: if path == HdZone.STR_HDD_TEMP: