Ramblurr/yubi-goog — pull request #3 by elops (2014-06-17 11:26:45+00:00)
Title: Gracefully handle missing key error

if no yubi is inserted prog terminates like

$ ./yubi_goog.py --yubi
Yubikey core error: no yubikey present
Traceback (most recent call last):
File "./yubi_goog.py", line 128, in
yubi(False)
File "./yubi_goog.py", line 106, in yubi
resp = subprocess.check_output(cmd).strip()
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['ykchalresp', '-2x', '0000xxxxxxxxx]' returned non-zero exit status 1

This patch handles missing key gracefully