There's a bug in the get_restarts_to_prune() method which raises an error when restart_history is configured and an archive directory exists but it contains no restarts.
I've added a test case that was able to recreate the error.
I could also do an early return if there is no restarts, but I've left the check for it later in the method to after checks for valid config.yaml values. But it would be an easy change to add that.
There's a bug in the
get_restarts_to_prune()
method which raises an error whenrestart_history
is configured and an archive directory exists but it contains no restarts.I've added a test case that was able to recreate the error.
I could also do an early return if there is no restarts, but I've left the check for it later in the method to after checks for valid
config.yaml
values. But it would be an easy change to add that.Closes #422