pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

Fix parse invalid interval string

Open rchindris opened this issue 1 year ago • 3 comments

The function _parse_iso8601_interval raises IndexError when either the first or the last part of the interval is not specified. This fix checks if the interval parts are empty strings and raises ParserError if so.

Pull Request Check List

  • [x] Added tests for changed code.
  • [x] Updated documentation for changed code.

rchindris avatar Nov 15 '24 15:11 rchindris

CodSpeed Performance Report

Merging #860 will not alter performance

Comparing rchindris:master (c44ffb0) with master (b84b976)

Summary

✅ 1 untouched benchmarks

codspeed-hq[bot] avatar Nov 21 '24 09:11 codspeed-hq[bot]

Please rebase your changes with master to fix the failing pipeline

Secrus avatar Nov 21 '24 09:11 Secrus

@Secrus 👍

rchindris avatar Nov 23 '24 19:11 rchindris