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 | f755708decd829819a93ebc71de7d15e530b6511 (patch) | |
| tree | 425c4c26c584d1e9eb84ec9c26d5029a3aca4aaf /cmd2.py | |
| parent | 13116e3fffcafc0d588dc4737c4731f8c6bfab63 (diff) | |
| download | cmd2-git-f755708decd829819a93ebc71de7d15e530b6511.tar.gz | |
generalizing xclip error trap
Diffstat (limited to 'cmd2.py')
| -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(): |
