Skip to content

Commit

Permalink
Fix f-string issue for old python.
Browse files Browse the repository at this point in the history
Signed-off-by: Stella Laurenzo <[email protected]>
  • Loading branch information
stellaraccident committed Oct 31, 2024
1 parent 325dbbc commit 9e84aee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/bindings/python/iree/build/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,10 @@ def file(self, file: str | BuildFile) -> BuildFile:
all_files = [
f.path for f in self.executor.all.values() if isinstance(f, BuildFile)
]
all_files_lines = "\n ".join(all_files)
raise RuntimeError(
f"File with path '{path}' is not known in the build graph. Available:\n"
f" {'\n '.join(all_files)}"
f" {all_files_lines}"
)
return existing

Expand Down

0 comments on commit 9e84aee

Please sign in to comment.