Mercurial > python-cmd2
diff cmd2.py @ 78:94d89298a8ef
catch ioerrors when checking for xclip
author | catherine.devlin@gmail.com |
---|---|
date | Mon, 30 Jun 2008 12:23:14 -0400 |
parents | bb44928c3856 |
children |
line wrap: on
line diff
--- 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():