Skip to content

Commit

Permalink
Catch OSError when reading pollfile
Browse files Browse the repository at this point in the history
This should rarely/never happen, since we check for the existence of the pollfile
when loading the config and earlier in the same function, but better safe than sorry
  • Loading branch information
johannaengland committed Aug 13, 2024
1 parent a4e0ccd commit 5987e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zino/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def load_polldevs(polldevs_conf: str) -> Tuple[Set, Set, Set, dict[str, str]]:

try:
devices, defaults = read_polldevs(polldevs_conf)
except InvalidConfiguration as error:
except (InvalidConfiguration, OSError) as error:
_log.error(error)
return set(), set(), set(), dict()

Expand Down

0 comments on commit 5987e68

Please sign in to comment.