{"action":"created","issue":{"url":"https://api.github.com/repos/marcwebbie/pysswords/issues/6","labels_url":"https://api.github.com/repos/marcwebbie/pysswords/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/marcwebbie/pysswords/issues/6/comments","events_url":"https://api.github.com/repos/marcwebbie/pysswords/issues/6/events","html_url":"https://github.com/marcwebbie/pysswords/issues/6","id":53797603,"number":6,"title":"pysswords throws a nasty error on --show-password","user":{"login":"betarelease","id":41690,"avatar_url":"https://avatars.githubusercontent.com/u/41690?v=3","gravatar_id":"","url":"https://api.github.com/users/betarelease","html_url":"https://github.com/betarelease","followers_url":"https://api.github.com/users/betarelease/followers","following_url":"https://api.github.com/users/betarelease/following{/other_user}","gists_url":"https://api.github.com/users/betarelease/gists{/gist_id}","starred_url":"https://api.github.com/users/betarelease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betarelease/subscriptions","organizations_url":"https://api.github.com/users/betarelease/orgs","repos_url":"https://api.github.com/users/betarelease/repos","events_url":"https://api.github.com/users/betarelease/events{/privacy}","received_events_url":"https://api.github.com/users/betarelease/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marcwebbie/pysswords/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-08T20:34:18Z","updated_at":"2015-01-12T06:19:19Z","closed_at":null,"body":"I have one test entry in the database but on showpassword it throws and error.\r\n\r\n| name   | login       | password   | comments                |\r\n|--------+-------------+------------+-------------------------|\r\n| github | betarelease | ****       | this is github password |\r\n\r\npysswords --show-password\r\n\r\nDatabase passphrase: \r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/pysswords\", line 5, in <module>\r\n    runpy.run_module(\"pysswords\", run_name=\"__main__\")\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 180, in run_module\r\n    fname, loader, pkg_name)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/Library/Python/2.7/site-packages/pysswords/__main__.py\", line 223, in <module>\r\n    run()\r\n  File \"/Library/Python/2.7/site-packages/pysswords/__main__.py\", line 219, in run\r\n    show_password=args.show_password)\r\n  File \"/Library/Python/2.7/site-packages/pysswords/__main__.py\", line 113, in list_credentials\r\n    row = build_row(database, credential, show_password)\r\n  File \"/Library/Python/2.7/site-packages/pysswords/__main__.py\", line 95, in build_row\r\n    check_passphrase(database, passphrase)\r\n  File \"/Library/Python/2.7/site-packages/pysswords/__main__.py\", line 82, in check_passphrase\r\n    default_key=database.key,\r\n  File \"/Library/Python/2.7/site-packages/pysswords/db.py\", line 32, in key\r\n    return self.gpg.list_keys(secret=True)[0][\"fingerprint\"]\r\nIndexError: list index out of range\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/marcwebbie/pysswords/issues/comments/69533057","html_url":"https://github.com/marcwebbie/pysswords/issues/6#issuecomment-69533057","issue_url":"https://api.github.com/repos/marcwebbie/pysswords/issues/6","id":69533057,"user":{"login":"marcwebbie","id":2798771,"avatar_url":"https://avatars.githubusercontent.com/u/2798771?v=3","gravatar_id":"","url":"https://api.github.com/users/marcwebbie","html_url":"https://github.com/marcwebbie","followers_url":"https://api.github.com/users/marcwebbie/followers","following_url":"https://api.github.com/users/marcwebbie/following{/other_user}","gists_url":"https://api.github.com/users/marcwebbie/gists{/gist_id}","starred_url":"https://api.github.com/users/marcwebbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcwebbie/subscriptions","organizations_url":"https://api.github.com/users/marcwebbie/orgs","repos_url":"https://api.github.com/users/marcwebbie/repos","events_url":"https://api.github.com/users/marcwebbie/events{/privacy}","received_events_url":"https://api.github.com/users/marcwebbie/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T06:19:19Z","updated_at":"2015-01-12T06:19:19Z","body":"I see, then you are probably using an older version of [Pysswords](http://marcwebbie.io/pysswords)\r\n\r\nPysswords is now on version 0.0.8. Update it to a newer version:\r\n\r\n`sudo pip install -U pysswords`\r\n\r\nCheck if it is version 0.0.8\r\n\r\n`pysswords --version`\r\n\r\n[Optional] Remove your old database:\r\n\r\n`rm -rf ~/.pysswords`\r\n\r\n-------\r\n\r\nThen try again."}}