summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2011-02-02 08:15:21 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2011-02-02 08:15:21 -0500
commitf755708decd829819a93ebc71de7d15e530b6511 (patch)
tree425c4c26c584d1e9eb84ec9c26d5029a3aca4aaf /cmd2.py
parent13116e3fffcafc0d588dc4737c4731f8c6bfab63 (diff)
downloadcmd2-git-f755708decd829819a93ebc71de7d15e530b6511.tar.gz
generalizing xclip error trap
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 0740043b..5dee1fda 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -197,7 +197,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, IOError):
+ except Exception: # hate a bare Exception call, but exception classes vary too much b/t stdlib versions
pass
if can_clip:
def get_paste_buffer():