diff options
author | catherine devlin <catherine.devlin@gmail.com> | 2011-02-02 08:15:21 -0500 |
---|---|---|
committer | catherine devlin <catherine.devlin@gmail.com> | 2011-02-02 08:15:21 -0500 |
commit | fd14065877e9170155d9f426a0fecc9c38f02e4a (patch) | |
tree | 425c4c26c584d1e9eb84ec9c26d5029a3aca4aaf | |
parent | 98cca9f46ff80d2a0b58fe09afeaba6b75d2c7b6 (diff) | |
download | cmd2-hg-fd14065877e9170155d9f426a0fecc9c38f02e4a.tar.gz |
generalizing xclip error trap
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(): |