Skip to content

Commit

Permalink
ngclient: Add missing f to an f-string
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
Jussi Kukkonen committed Feb 1, 2022
1 parent 163b752 commit 2ca3be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuf/ngclient/_internal/requests_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_session(self, url: str) -> requests.Session:
parsed_url = parse.urlparse(url)

if not parsed_url.scheme or not parsed_url.hostname:
raise exceptions.DownloadError("Failed to parse URL {url}")
raise exceptions.DownloadError(f"Failed to parse URL {url}")

session_index = f"{parsed_url.scheme}+{parsed_url.hostname}"
session = self._sessions.get(session_index)
Expand Down

0 comments on commit 2ca3be8

Please sign in to comment.