diff cmd2.py @ 422:6ffa49335dcb

Python 3 installation instructions
author catherine.devlin@gmail.com
date Wed, 20 Jul 2011 21:23:53 -0400
parents fc63f0aad022
children 6773286315f0
line wrap: on
line diff
--- a/cmd2.py	Wed Jun 22 21:56:20 2011 -0400
+++ b/cmd2.py	Wed Jul 20 21:23:53 2011 -0400
@@ -221,6 +221,8 @@
                 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)