)]}'
{"os_brick/initiator/host_driver.py":[{"author":{"_account_id":7350,"name":"Jordan Pittier","email":"jordan.pittier@gmail.com","username":"JordanP"},"change_message_id":"84018f9cd047e9fa0f4619407079e71591a5e2cb","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        try:"},{"line_number":25,"context_line":"            files \u003d os.listdir(dir)"},{"line_number":26,"context_line":"        except OSError:"},{"line_number":27,"context_line":"            files \u003d []"},{"line_number":28,"context_line":"        devices \u003d []"},{"line_number":29,"context_line":"        for file in files:"},{"line_number":30,"context_line":"            devices.append(dir + file)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_dcbc3e6e","line":27,"updated":"2015-07-28 15:30:37.000000000","message":"This except statement is too broad. OSError could be raised for dozens of reasons. You should inspect the errno of the exception object and raise if errno !\u003d ENOENT","commit_id":"43e638062816bc9c492d8b8a289de35df23ec26a"},{"author":{"_account_id":7350,"name":"Jordan Pittier","email":"jordan.pittier@gmail.com","username":"JordanP"},"change_message_id":"3f21f1ca396c63c39d3a33ad2d17f91b9df07111","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        try:"},{"line_number":25,"context_line":"            files \u003d os.listdir(dir)"},{"line_number":26,"context_line":"        except OSError:"},{"line_number":27,"context_line":"            files \u003d []"},{"line_number":28,"context_line":"        devices \u003d []"},{"line_number":29,"context_line":"        for file in files:"},{"line_number":30,"context_line":"            devices.append(dir + file)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_8b1d0bc0","line":27,"in_reply_to":"3a50d1a3_a8148de8","updated":"2015-07-28 16:33:02.000000000","message":"If we get an OSError that is not the OSError that we expected then we should let the caller know about it.","commit_id":"43e638062816bc9c492d8b8a289de35df23ec26a"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0ee89cd8736eb71d093d356cb41e51d6f1b4a5ae","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        try:"},{"line_number":25,"context_line":"            files \u003d os.listdir(dir)"},{"line_number":26,"context_line":"        except OSError:"},{"line_number":27,"context_line":"            files \u003d []"},{"line_number":28,"context_line":"        devices \u003d []"},{"line_number":29,"context_line":"        for file in files:"},{"line_number":30,"context_line":"            devices.append(dir + file)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_a8148de8","line":27,"in_reply_to":"3a50d1a3_dcbc3e6e","updated":"2015-07-28 16:09:59.000000000","message":"I\u0027m not sure that makes sense in this case.  If os.listdir gives an exception, it\u0027s a failure and we can\u0027t recover from it anyway.  returning [] is going to be ok at that point.","commit_id":"43e638062816bc9c492d8b8a289de35df23ec26a"}]}
