Skip to content

Commit 6a1c8a2

Browse files
committed
Not an f-string
1 parent 6631ea1 commit 6a1c8a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/manage/install_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def select_package(index_downloader, tag, platform=None, *, urlopen=_urlopen, by
7979
if allow_pre or not v["sort-version"].is_prerelease:
8080
return v
8181
v = index.find_to_install(tag)
82-
if v["sort-version"].is_prerelease and not allow_prerelease:
83-
raise LookupError(f"Found '{}' matching '{}' but excluded "
82+
if v["sort-version"].is_prerelease and not allow_pre:
83+
raise LookupError("Found '{}' matching '{}' but excluded "
8484
"because we are now allowing prereleases.".format(
8585
v["display-name"], tag))
8686
return v

0 commit comments

Comments
 (0)