Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from tag without int #2

Open
philipmeier opened this issue Apr 5, 2017 · 0 comments
Open

error from tag without int #2

philipmeier opened this issue Apr 5, 2017 · 0 comments

Comments

@philipmeier
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant