)]}'
{"oslo_policy/policy.py":[{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"44209cfbcc8c7cce3b979a53fbd982f8ab1aa09e","unresolved":false,"context_lines":[{"line_number":245,"context_line":""},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"class PolicyDataNotCorrect(Exception):"},{"line_number":248,"context_line":"    \"\"\"Default exception raised for format of policy file or data.\"\"\""},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    def __init__(self):"},{"line_number":251,"context_line":"        msg \u003d (_(\u0027Format of policy file or data is not correct\u0027))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba8a016a_b8d04820","line":248,"updated":"2015-11-19 09:02:49.000000000","message":"s/for format/for invalid format ?","commit_id":"9d53aab372b1235b578a74fb532db88edbaf1c55"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"44209cfbcc8c7cce3b979a53fbd982f8ab1aa09e","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        try:"},{"line_number":264,"context_line":"            rules \u003d dict((k, _parser.parse_rule(v)) for k, v in"},{"line_number":265,"context_line":"                     jsonutils.loads(data).items())"},{"line_number":266,"context_line":"        except Exception:"},{"line_number":267,"context_line":"            \"\"\"If the format of policy file or data is not correct,"},{"line_number":268,"context_line":"            raise the incorrect information.\"\"\""},{"line_number":269,"context_line":"            raise PolicyDataNotCorrect"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba8a016a_1838743c","line":266,"updated":"2015-11-19 09:02:49.000000000","message":"you are convert all type of exceptions to  PolicyDataNotCorrect,  Hmm.. Is there any exception can raise here ?","commit_id":"9d53aab372b1235b578a74fb532db88edbaf1c55"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"44209cfbcc8c7cce3b979a53fbd982f8ab1aa09e","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        except Exception:"},{"line_number":267,"context_line":"            \"\"\"If the format of policy file or data is not correct,"},{"line_number":268,"context_line":"            raise the incorrect information.\"\"\""},{"line_number":269,"context_line":"            raise PolicyDataNotCorrect"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"        return cls(rules, default_rule)"},{"line_number":272,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba8a016a_98d6a4ef","line":269,"updated":"2015-11-19 09:02:49.000000000","message":"Here you\u0027r returning a class  ,  need return an instance.\n\nchange to :  raise PolicyDataNotCorrect() ?","commit_id":"9d53aab372b1235b578a74fb532db88edbaf1c55"}]}
