{"action":"opened","issue":{"url":"https://api.github.com/repos/jborg/attic/issues/236","labels_url":"https://api.github.com/repos/jborg/attic/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/jborg/attic/issues/236/comments","events_url":"https://api.github.com/repos/jborg/attic/issues/236/events","html_url":"https://github.com/jborg/attic/issues/236","id":62070328,"number":236,"title":"Traceback should be an error informing client why","user":{"login":"duanebc","id":1254709,"avatar_url":"https://avatars.githubusercontent.com/u/1254709?v=3","gravatar_id":"","url":"https://api.github.com/users/duanebc","html_url":"https://github.com/duanebc","followers_url":"https://api.github.com/users/duanebc/followers","following_url":"https://api.github.com/users/duanebc/following{/other_user}","gists_url":"https://api.github.com/users/duanebc/gists{/gist_id}","starred_url":"https://api.github.com/users/duanebc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duanebc/subscriptions","organizations_url":"https://api.github.com/users/duanebc/orgs","repos_url":"https://api.github.com/users/duanebc/repos","events_url":"https://api.github.com/users/duanebc/events{/privacy}","received_events_url":"https://api.github.com/users/duanebc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T12:47:56Z","updated_at":"2015-03-16T12:47:56Z","closed_at":null,"body":"When an encrypted repo is attempted access from a location without the key, the following stack is provided.  I believe a standard error should be given alerting user.\r\n\r\nattic list clark1.attic::Initial \r\nTraceback (most recent call last):\r\n  File \"/usr/bin/attic\", line 3, in <module>\r\n    main()\r\n  File \"/usr/lib64/python3.4/site-packages/attic/archiver.py\", line 727, in main\r\n    exit_code = archiver.run(sys.argv[1:])\r\n  File \"/usr/lib64/python3.4/site-packages/attic/archiver.py\", line 717, in run\r\n    return args.func(args)\r\n  File \"/usr/lib64/python3.4/site-packages/attic/archiver.py\", line 271, in do_list\r\n    manifest, key = Manifest.load(repository)\r\n  File \"/usr/lib64/python3.4/site-packages/attic/helpers.py\", line 98, in load\r\n    key = key_factory(repository, cdata)\r\n  File \"/usr/lib64/python3.4/site-packages/attic/key.py\", line 38, in key_factory\r\n    return KeyfileKey.detect(repository, manifest_data)\r\n  File \"/usr/lib64/python3.4/site-packages/attic/key.py\", line 205, in detect\r\n    path = cls.find_key_file(repository)\r\n  File \"/usr/lib64/python3.4/site-packages/attic/key.py\", line 224, in find_key_file\r\n    raise Exception('Key file for repository with ID %s not found' % id)\r\nException: Key file for repository with ID e0d0585452b1b10f9f3096c27aeb8c4925f55eeadf57c0da2e0cab56186f94aa not found\r\n\r\nCentOS release 6.6 (Final)\r\nPython 3.4.2\r\n\r\nInstalled via pip\r\n\r\npip3.4 freeze\r\nAttic==0.14\r\nmsgpack-python==0.4.6\r\n\r\n"}}