)]}'
{"ovn_bgp_agent/drivers/openstack/utils/ovn.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"84a9e46e95cfc6c1c9044d2735e36971a7a67a76","unresolved":true,"context_lines":[{"line_number":577,"context_line":"        port_info \u003d self.get_port_by_name(port_name)"},{"line_number":578,"context_line":"        try:"},{"line_number":579,"context_line":"            return (port_info and not port_info.chassis)"},{"line_number":580,"context_line":"        except IndexError:"},{"line_number":581,"context_line":"            pass"},{"line_number":582,"context_line":"        return False"},{"line_number":583,"context_line":""},{"line_number":584,"context_line":"    def is_port_deleted(self, port_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a5e8952_a6c2ccd7","line":581,"range":{"start_line":580,"start_character":0,"end_line":581,"end_character":16},"updated":"2023-11-28 14:17:54.000000000","message":"Unless we are trying to access something like port_info.chassis[0] I don\u0027t see how this can raise an IndexError ?\n\nDo you mean AttributeError ? (If the \"chassis\" attribute is not found in port_info)","commit_id":"3489185f74026462214700c8055c19aa395a2f3a"},{"author":{"_account_id":23567,"name":"Luis Tomas Bolivar","email":"ltomasbo@redhat.com","username":"ltomasbo"},"change_message_id":"6e9965cee99622ea71bb1f057a0f1310bf515acf","unresolved":false,"context_lines":[{"line_number":577,"context_line":"        port_info \u003d self.get_port_by_name(port_name)"},{"line_number":578,"context_line":"        try:"},{"line_number":579,"context_line":"            return (port_info and not port_info.chassis)"},{"line_number":580,"context_line":"        except IndexError:"},{"line_number":581,"context_line":"            pass"},{"line_number":582,"context_line":"        return False"},{"line_number":583,"context_line":""},{"line_number":584,"context_line":"    def is_port_deleted(self, port_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"2ac28c33_b7f6e8a5","line":581,"range":{"start_line":580,"start_character":0,"end_line":581,"end_character":16},"in_reply_to":"1a5e8952_a6c2ccd7","updated":"2023-11-28 14:23:15.000000000","message":"ups... this is copy and paste issue from the is_port_on_chassis, where you can get IndexError if chassis is empty. I\u0027ll remove it","commit_id":"3489185f74026462214700c8055c19aa395a2f3a"}]}
