Skip to content

Conversation

@gasinvein
Copy link
Collaborator

Fixes #240

@coveralls
Copy link

coveralls commented Oct 6, 2021

Coverage Status

Coverage increased (+0.02%) to 92.506% when pulling 1ef98a9 on anityachecker-catch-errors into ed0648d on master.

@gasinvein gasinvein force-pushed the anityachecker-catch-errors branch from b341086 to 1ef98a9 Compare October 6, 2021 15:36
try:
latest_version = versions[0]
except IndexError as err:
raise CheckerQueryError("Can't find matching version") from err
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be nice to give more details about why not:

Suggested change
raise CheckerQueryError("Can't find matching version") from err
raise CheckerQueryError(f"Can't find matching {'stable ' if stable_only else ''}version{ f' satisfying {constraints}' if constraints else ''}") from err

but having written that, it's really hard to read, and I guess it will be obvious by looking at the manifest.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess it will be obvious by looking at the manifest.

Yeah. Also constraints will look messy when printed, since it's not just a dict but either OrderedDict or CommentedMap.

@gasinvein gasinvein merged commit adecbe0 into master Oct 7, 2021
@gasinvein gasinvein deleted the anityachecker-catch-errors branch October 7, 2021 08:33
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.

versions filter: failure when relational operation generate an empty list to target a future release

4 participants