Skip to content

Ensure that malformed datetime points with > 1 "T" raise the correct error#266

Merged
MetRonnie merged 1 commit intomasterfrom
fix.very-invalid
Oct 14, 2025
Merged

Ensure that malformed datetime points with > 1 "T" raise the correct error#266
MetRonnie merged 1 commit intomasterfrom
fix.very-invalid

Conversation

@wxtim
Copy link
Copy Markdown
Contributor

@wxtim wxtim commented Aug 28, 2025

fail with ISO8601SyntaxError rather than unpacking error.

User's jinja2 shebang fail described in cylc/cylc-flow#6948 was causing input to isodatetime of {{STARTTIME}}T0000Z which was not properly handled by isodatetime, resulting in an assignment error. This gave user lots of traceback rather than a simple message.

@wxtim wxtim added this to the 3.2.0 milestone Aug 28, 2025
@wxtim wxtim requested a review from MetRonnie August 28, 2025 14:03
@wxtim wxtim self-assigned this Aug 28, 2025
fail with ISO8601SyntaxError rather than unpacking
error.
@MetRonnie MetRonnie changed the title Ensure that malformed datetime points with > 1 "T" Ensure that malformed datetime points with > 1 "T" raise the correct error Oct 14, 2025
@MetRonnie MetRonnie merged commit 5fa6571 into master Oct 14, 2025
10 of 11 checks passed
@MetRonnie MetRonnie deleted the fix.very-invalid branch October 14, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants