We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58642a6 commit 8d0a57eCopy full SHA for 8d0a57e
pandas/util/clipboard.py
@@ -114,6 +114,9 @@ def osx_clipboard_set(text):
114
115
116
def xsel_clipboard_set(text):
117
- from subprocess import Popen, PIPE
118
- p = Popen(['xsel', '-bi'], stdin=PIPE)
119
- p.communicate(input=text)
+ try:
+ from subprocess import Popen, PIPE
+ p = Popen(['xsel', '-bi'], stdin=PIPE)
120
+ p.communicate(input=text)
121
+ except OSError:
122
+ raise OSError("Clipboard_set on your platform requires the xsel command line tool to be installed.")
0 commit comments