)]}'
{"designateclient/exceptions.py":[{"author":{"_account_id":8736,"name":"Terry Howe","email":"terrylhowe@gmail.com","username":"terrylhowe"},"change_message_id":"275a2886e0bc24c7d3411afa3febdb3f5473079b","unresolved":false,"context_lines":[{"line_number":34,"context_line":"class RemoteError(Base):"},{"line_number":35,"context_line":"    def __init__(self, message\u003dNone, code\u003dNone, type\u003dNone, errors\u003dNone,"},{"line_number":36,"context_line":"                 request_id\u003dNone):"},{"line_number":37,"context_line":"        # Try to get a useful error msg if \u0027message\u0027 has nothing"},{"line_number":38,"context_line":"        if not message:"},{"line_number":39,"context_line":"            if errors and \u0027errors\u0027 in errors:"},{"line_number":40,"context_line":"                err_msg \u003d list()"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_b1ab4bd6","line":37,"updated":"2015-09-01 17:31:10.000000000","message":"This to me is just enough complexity that a test would be nice.","commit_id":"b4b51a8b8a36622e1c7fb95b003f00f77d958eef"},{"author":{"_account_id":15171,"name":"Eric Larson","email":"eric.larson@rackspace.com","username":"elarson"},"change_message_id":"459b7c53ad24c4d8d5dcf73442840f89263aee6a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                        err_msg.append(err[\u0027message\u0027])"},{"line_number":44,"context_line":"                message \u003d \u0027. \u0027.join(err_msg)"},{"line_number":45,"context_line":"            elif type:"},{"line_number":46,"context_line":"                message \u003d str(type)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        self.message \u003d message"},{"line_number":49,"context_line":"        self.code \u003d code"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_4eb5057c","line":46,"updated":"2015-09-10 15:06:40.000000000","message":"I would also move it to its own function and do a self.message \u003d self._find_message(message, type, errors). There are at least 3 code paths here that should be tested to ensure we are getting the errors dict(?) as expected.\n\nAlso, can we rename the type param to something that won\u0027t clobber a builtin? Doing str(type) could become dangerous over time as code moves around.","commit_id":"b4b51a8b8a36622e1c7fb95b003f00f77d958eef"}]}
