Skip to content

Commit

Permalink
#1 Change erroneous result message
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoruNishikawa committed May 25, 2022
1 parent 7812181 commit 4153a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep440_checker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ async def is_in(self, version, version_range) -> Union[str, bool]:
version_range = parse_constraint(version_range)
return version_range.allows(version)
except InvalidVersion:
return f"Invalid version: '{version}'"
return f"Invalid version: <code>{version}</code>"
except ParseConstraintError:
return f"Invalid version range: '{version_range}'"
return f"Invalid version range: <code>{version_range}</code>"


async def test_version(event) -> None:
Expand Down

0 comments on commit 4153a04

Please sign in to comment.