diff --git a/poetry/installation/chooser.py b/poetry/installation/chooser.py index d48fa5e0522..d49a183d9f8 100644 --- a/poetry/installation/chooser.py +++ b/poetry/installation/chooser.py @@ -111,7 +111,7 @@ def _get_links(self, package): # type: (Package) -> List[Link] if links and not selected_links: raise RuntimeError( - f"Retrieved digest for link {link.filename}({h}) not in poetry.lock metadata {hashes}" + "Retrieved digest for link {}({}) not in poetry.lock metadata {}".format(link.filename, h, hashes) ) return selected_links