)]}'
{"ironicclient/common/base.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"903f7901ca47e1005cedc40e32661be794f9c525","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            return resource.to_dict()"},{"line_number":97,"context_line":"        except AttributeError:"},{"line_number":98,"context_line":"            return {}"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _format_body_data(self, body, response_key):"},{"line_number":101,"context_line":"        if response_key:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a98d1f4_c1c2d9e8","line":98,"updated":"2016-10-01 09:50:11.000000000","message":"nit: maybe it\u0027s better to be a bit more explicit:\n\n if resource:\n   return resource.to_dict()\n else:\n   return {}\n\nwho knows why AttributeError can be raised..","commit_id":"cc79a3a8185eac8469a822b004b25d903768ecb3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"270ec84ff1fe0461ac6eaca2d82d7e25b68ffe32","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            return resource.to_dict()"},{"line_number":97,"context_line":"        except AttributeError:"},{"line_number":98,"context_line":"            return {}"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _format_body_data(self, body, response_key):"},{"line_number":101,"context_line":"        if response_key:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_077c7971","line":98,"in_reply_to":"3a98d1f4_c1c2d9e8","updated":"2016-10-04 16:13:44.000000000","message":"That\u0027s funny. I like your approach but I went with the EAFP (\u0027easier to ask for forgiveness instead of permission\u0027) pythonic way.\n\nI\u0027m going to change it to the way you/I prefer. That also seems consistent with the method before/after this one :)","commit_id":"cc79a3a8185eac8469a822b004b25d903768ecb3"}]}
