Skip to content

Commit

Permalink
fix: fixed display bug in confirm prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 16, 2024
1 parent 53d160e commit b9f8cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/tools/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def execute_python(
"""Executes a python codeblock and returns the output."""
code = code.strip()
print_preview(code, "python")
if not confirm(f"{code}\n\nExecute this code?"):
if not confirm("Execute this code?"):
# early return
yield Message("system", "Aborted, user chose not to run command.")
return
Expand Down

0 comments on commit b9f8cd8

Please sign in to comment.