diff cmd2.py @ 56:f844b6c78192 0.3.4.1

fixing (hopefully) broken pipe error for headless systems
author catherine.devlin@gmail.com
date Fri, 27 Jun 2008 09:50:38 -0400
parents a791d615545c
children f583663c610f 683ed678b636
line wrap: on
line diff
--- a/cmd2.py	Mon Jun 09 12:09:10 2008 -0400
+++ b/cmd2.py	Fri Jun 27 09:50:38 2008 -0400
@@ -109,7 +109,7 @@
         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):
+    except (subprocess.CalledProcessError, OSError, IOError):
         pass
     if can_clip:    
         def getPasteBuffer():