Skip to content

Conversation

@vdboor
Copy link
Contributor

@vdboor vdboor commented Jan 13, 2016

This avoids storing an ugettext value in self.version.
It's value got parsed in ids = [int(v) for v in self.value]
causing an int("F") call that fails.

Instead, a sentinal value is introduced that can be recognized in the
code, yet output a meaningful message when it's shown to the user.

Fixes #44

@thektulu
Copy link

I've written almost the same solution, but found this before commiting. +1

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not old, common usage: ugettext as _ ?!?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm good point, I'd better revert that

@vdboor
Copy link
Contributor Author

vdboor commented Jan 14, 2016

I've pushed an updated version which doesn't change the ugettext import.
The translation is kept as-is, because that's what the old code also used.

@vdboor
Copy link
Contributor Author

vdboor commented Feb 7, 2016

@jedie could you look into this PR please?

@jedie
Copy link
Owner

jedie commented Feb 8, 2016

Can you rebase ?

@vdboor
Copy link
Contributor Author

vdboor commented Feb 16, 2016

Have one so in a new pull request, as this one was accidentally made from my master branch! (#61)

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

Successfully merging this pull request may close these issues.

3 participants