Skip to content

Catch IndexError when getting dir creation date

Cyril Danilevski requested to merge fix/test_get_dir_date into master

Description

Index error means that there are no files in the directory. We catch this error, as we want get_dir_creation_date to raise only a ValueError, which highlights better that the provided run is incorrect.

Previous changes broke the tests.

How Has This Been Tested?

pytest -vv tests/test_cal_tools.py

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Reviewers

Merge request reports