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 2, 2024
1 parent 3eac561 commit fefada5
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 @@ -60,7 +60,7 @@ def load_polldevs(polldevs_conf: str) -> Tuple[Set, Set]:

try:
devices = {d.name: d for d in read_polldevs(polldevs_conf)}
except InvalidConfiguration as error:
except (InvalidConfiguration, OSError) as error:
_log.error(error)
return set(), set()

Expand Down

0 comments on commit fefada5

Please sign in to comment.