summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorcatherine devlin <catherine.devlin@gmail.com>2011-07-20 21:23:53 -0400
committercatherine devlin <catherine.devlin@gmail.com>2011-07-20 21:23:53 -0400
commit8d337bb7eef0204b052f2052cd8bdc2f1fdd613d (patch)
treef30e0f28c2e1560639f87524e520a1204f78b693 /cmd2.py
parent6194bbe2f826137116b5d715a99c7531929b9a70 (diff)
downloadcmd2-hg-8d337bb7eef0204b052f2052cd8bdc2f1fdd613d.tar.gz
Python 3 installation instructions
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index bedae38..aebe618 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -221,6 +221,8 @@ else:
can_clip = True
except Exception: # hate a bare Exception call, but exception classes vary too much b/t stdlib versions
pass
+ except Exception:
+ pass # something went wrong with xclip and we cannot use it
if can_clip:
def get_paste_buffer():
xclipproc = subprocess.Popen('xclip -o -sel clip', shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)