)]}'
{"glanceclient/v2/shell.py":[{"author":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"change_message_id":"7a7e8891bd3e1e35c49dbbd0eaff833931a92d5b","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    \"\"\"Download a specific image.\"\"\""},{"line_number":278,"context_line":"    try:"},{"line_number":279,"context_line":"        body \u003d gc.images.data(args.id)"},{"line_number":280,"context_line":"    except exc.HTTPForbidden:"},{"line_number":281,"context_line":"        msg \u003d \"You are not permitted to download image \u0027%s\u0027.\" % args.id"},{"line_number":282,"context_line":"        utils.exit(msg)"},{"line_number":283,"context_line":"    except exc.HTTPException as e:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_21a79650","line":280,"updated":"2015-12-25 09:26:09.000000000","message":"IMO it would be reasonable to print exception message to explain users why downloading is forbidden. As I can see in the bug that exception provides this info. WDYT?","commit_id":"f21a717bf4c64f52a405a3c454392c86780b1a44"},{"author":{"_account_id":5202,"name":"Erno Kuvaja","email":"jokke@usr.fi","username":"jokke"},"change_message_id":"0f96998c88a1e415346b71d2c01f0ededace9612","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    try:"},{"line_number":279,"context_line":"        body \u003d gc.images.data(args.id)"},{"line_number":280,"context_line":"    except exc.HTTPForbidden as e:"},{"line_number":281,"context_line":"        msg \u003d \"Cannot download image \u0027%s\u0027. (%s)\" % (args.id, e)"},{"line_number":282,"context_line":"        utils.exit(msg)"},{"line_number":283,"context_line":"    except exc.HTTPException as e:"},{"line_number":284,"context_line":"        msg \u003d \"\u0027%s\u0027: Unable to download image \u0027%s\u0027\" % (e, args.id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_06345e48","line":281,"updated":"2016-02-24 18:10:04.000000000","message":"Would it be unreasonable to ask that we are consistent how we print the exception messages. As in: \"\u0027%s\u0027: Cannot download image \u0027%s\u0027.\" % (e, args.id)","commit_id":"5c89ed77b0dcce93e0f62f3e714effb7d7ddcaa2"}]}
