)]}'
{"zaqar/common/api/utils.py":[{"author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"change_message_id":"070e625df7a7bb382aae97c54b1940c0f97db55d","unresolved":false,"context_lines":[{"line_number":179,"context_line":"    return kwargs"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"def internal_error_handler(func):"},{"line_number":183,"context_line":"    \"\"\"Handles generic Exceptions"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    This decorator catches generic Exceptions and returns a generic"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_bbca756c","line":182,"updated":"2016-02-22 16:26:57.000000000","message":"I feel like this name is actually worse than \"raises_conn_error\" because it\u0027s a noun rather than a behavior. I think either keeping \"raises_conn_error\" or doing something like \"catch_errors_and_respond\"","commit_id":"9eb5c152ffc5213eb24790f7e7e934cc70322b9b"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"ddc255e866a5c381f1f8f501f1ac536ebd3cf139","unresolved":false,"context_lines":[{"line_number":179,"context_line":"    return kwargs"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"def internal_error_handler(func):"},{"line_number":183,"context_line":"    \"\"\"Handles generic Exceptions"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    This decorator catches generic Exceptions and returns a generic"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_fb2b5d92","line":182,"in_reply_to":"bae84128_bbca756c","updated":"2016-02-22 16:38:12.000000000","message":"Yes, you\u0027re right. Verb would be better here.\nI like \"catch_errors_and_respond\".","commit_id":"9eb5c152ffc5213eb24790f7e7e934cc70322b9b"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"b97abc89ab44f68cc2a3adba286c4b7ba3c14690","unresolved":false,"context_lines":[{"line_number":179,"context_line":"    return kwargs"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"def internal_error_handler(func):"},{"line_number":183,"context_line":"    \"\"\"Handles generic Exceptions"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    This decorator catches generic Exceptions and returns a generic"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_cd5fc03f","line":182,"in_reply_to":"bae84128_fb2b5d92","updated":"2016-02-22 16:53:37.000000000","message":"In Zaqar chat me and Ryan agreed that \"on_exception_sends_500\" would be even better.","commit_id":"9eb5c152ffc5213eb24790f7e7e934cc70322b9b"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"b0f926e300f6bba880c472192c75091c34c09d0f","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            LOG.exception(ex)"},{"line_number":195,"context_line":"            error \u003d _(\"Unexpected error.\")"},{"line_number":196,"context_line":"            headers \u003d {\u0027status\u0027: 500}"},{"line_number":197,"context_line":"            req \u003d args[1]"},{"line_number":198,"context_line":"            return error_response(req, ex, headers, error)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":4,"id":"bae84128_390783cb","line":197,"updated":"2016-02-22 20:32:28.000000000","message":"(nit): Could you please add a note to explain args[1] so that in the future we can track it? Thanks.","commit_id":"28758383b958aaadb671ff5861271c3a646a1f9c"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"9ebaf8c55f6abde12a0a6dc4cbbdcb2cf7f8e6c1","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            LOG.exception(ex)"},{"line_number":195,"context_line":"            error \u003d _(\"Unexpected error.\")"},{"line_number":196,"context_line":"            headers \u003d {\u0027status\u0027: 500}"},{"line_number":197,"context_line":"            req \u003d args[1]"},{"line_number":198,"context_line":"            return error_response(req, ex, headers, error)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":4,"id":"bae84128_33d785ee","line":197,"in_reply_to":"bae84128_390783cb","updated":"2016-02-23 10:25:59.000000000","message":"Oki, added a note. \nIf this decorator will be ever used outside Endpoint object, it will not work, because arguments might be different. But we don\u0027t need to decorate other things by this decorator, right?","commit_id":"28758383b958aaadb671ff5861271c3a646a1f9c"}]}
