)]}'
{"functionaltests/common/client.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"01500bfa793bed84aaa9c96490bf77d54d7629c5","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _attempt_to_stringify_content(self, content, content_tag):"},{"line_number":56,"context_line":"        try:"},{"line_number":57,"context_line":"            LOG.info(\"Attempting to stringify \u0027%s\u0027: %s\", content_tag, content)"},{"line_number":58,"context_line":"            return content"},{"line_number":59,"context_line":"        except UnicodeDecodeError:"},{"line_number":60,"context_line":"            # NOTE(jaosorior): Since we are using base64 as default and this is"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_034c999c","line":57,"updated":"2015-01-14 00:23:03.000000000","message":"So is the logging step what would trigger the UnitcodeDecodeError here? If so, this is not reliable because if info logging is turned off, then there is not attempt made to format that string. \n\nIt would be better to perform a \u0027return str(content)\u0027 or something along those lines (probably using the six library to handle 2.x/3.x correctly).","commit_id":"5eff542c46edca93012bf7afd8d78407222d3b3d"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"10f48ff4271ed14e03156f3346b7b40ab51f2d4e","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _attempt_to_stringify_content(self, content, content_tag):"},{"line_number":56,"context_line":"        try:"},{"line_number":57,"context_line":"            LOG.info(\"Attempting to stringify \u0027%s\u0027: %s\", content_tag, content)"},{"line_number":58,"context_line":"            return content"},{"line_number":59,"context_line":"        except UnicodeDecodeError:"},{"line_number":60,"context_line":"            # NOTE(jaosorior): Since we are using base64 as default and this is"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_69d9b721","line":57,"in_reply_to":"3a961159_034c999c","updated":"2015-01-14 07:41:19.000000000","message":"actually, str() doesn\u0027t throw this exception. Only when trying to format the string this seems to happen. So this mostly happens when we try to log some request.","commit_id":"5eff542c46edca93012bf7afd8d78407222d3b3d"}]}
