Skip to content
Snippets Groups Projects

Catch IndexError when getting dir creation date

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading