Skip to content

error from tag without int #2

@philipmeier

Description

@philipmeier

File "/Users/philipmeier/projects/anaconda2/bin/cleverscript", line 35, in
num = int(re.findall("[0-9]+", tag)[-1])
IndexError: list index out of range

this can be solved by removing tags that don't end in an int

git tag -d tag_that_gets_in_the_way

a small change to the code would also fix it:

the calculation of "num" should be done only if "cleverbuild" is in the tag

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