summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2008-06-27 09:50:38 -0400
committerCatherine Devlin <catherine.devlin@gmail.com>2008-06-27 09:50:38 -0400
commit96ddbc7bccc355cbf4db2500f8e0a8d299614d4f (patch)
tree1d57903c9647fb3fafbdaa5c9d2746bc2b0bd26f /cmd2.py
parent495e55c440d3bc047ef5e8cb42b3c59745a7f692 (diff)
downloadcmd2-git-0.3.4.1.tar.gz
fixing (hopefully) broken pipe error for headless systems0.3.4.1
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index ed709323..e3bf195c 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -109,7 +109,7 @@ else:
xclipproc = subprocess.Popen('xclip -o -sel clip', shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
if xclipproc.stdout.read() == teststring:
can_clip = True
- except (subprocess.CalledProcessError, OSError):
+ except (subprocess.CalledProcessError, OSError, IOError):
pass
if can_clip:
def getPasteBuffer():