# HG changeset patch # User catherine.devlin@gmail.com # Date 1214842994 14400 # Node ID 94d89298a8ef93634daab7ac4ad0b8fb1e6c14e4 # Parent bb44928c38565511546e8b1cc55be549db2d2e89 catch ioerrors when checking for xclip diff -r bb44928c3856 -r 94d89298a8ef cmd2.py --- a/cmd2.py Sat Jun 28 11:10:01 2008 -0400 +++ b/cmd2.py Mon Jun 30 12:23:14 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():