Skip to content

Commit

Permalink
refactor: use f string
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Akhmerov <anton.akhmerov@gmail.com>
  • Loading branch information
12rambau and akhmerov authored Jan 10, 2024
1 parent 3ac289a commit 79e5f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_sphinx/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def apply(self):
if output["output_type"] == "stream" and output["name"] == "stderr"
]
if stderr and not node.attributes["stderr"]:
js.logger.warning("Cell printed to stderr:\n{}".format(stderr[0]["text"]))
js.logger.warning(f"Cell printed to stderr:\n{stderr[0]['text']}")

# Insert input/output into placeholders for non-executed cells
for node, cell in zip(nodes, notebook.cells):
Expand Down

0 comments on commit 79e5f47

Please sign in to comment.