Skip to content

RuntimeError: Unique names are not defined for 2026 and beyond. #1169

Description

@zacharyburnett

found while testing #1168
https://github.com/spacetelescope/crds/actions/runs/20725816951/job/59501132466?pr=1168#step:7:110

now = datetime.datetime(2026, 1, 5, 19, 11, 8, 526831)

    def generate_timestamp(now=None):
    
        """Generate an enhanced CDBS-style uniqname."""
    
        if now is None:
            now = datetime.datetime.utcnow()
    
        if now.year < 2016:
            year = chr(now.year - 2015 + ord('z'))
        elif 2016 <= now.year <= 2025:
            year = chr(now.year - 2016 + ord('0'))
        else:
>           raise RuntimeError("Unique names are not defined for 2026 and beyond.")
E           RuntimeError: Unique names are not defined for 2026 and beyond.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions