Skip to content

Commit

Permalink
Update gptme/clipboard.py
Browse files Browse the repository at this point in the history
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
  • Loading branch information
0xbrayo and ellipsis-dev[bot] committed Nov 9, 2024
1 parent f96b92b commit 6e4dfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def copy() -> bool:
# check if xclip or wl-clipboard is installed
installed = get_installed_programs(("xclip", "wl-copy"))
if "wl-copy" in installed:
output = subprocess.run(["wl-copy"], input=text, text=True)
output = subprocess.run(["wl-copy"], input=text, text=True, check=True)
if output.returncode != 0:
print("wl-copy failed to copy to clipboard.")
return False
Expand Down

0 comments on commit 6e4dfda

Please sign in to comment.