summaryrefslogtreecommitdiff
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
commitfd14065877e9170155d9f426a0fecc9c38f02e4a (patch)
tree425c4c26c584d1e9eb84ec9c26d5029a3aca4aaf
parent98cca9f46ff80d2a0b58fe09afeaba6b75d2c7b6 (diff)
downloadcmd2-hg-fd14065877e9170155d9f426a0fecc9c38f02e4a.tar.gz
generalizing xclip error trap
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 0740043..5dee1fd 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():