)]}'
{"oslo_messaging/localcontext.py":[{"author":{"_account_id":9107,"name":"Victor Stinner","email":"vstinner@redhat.com","username":"haypo"},"change_message_id":"6b9c59aa5aaa1de64cb1394e215f685e0040aa14","unresolved":false,"context_lines":[{"line_number":83,"context_line":"def _clear_local_context():"},{"line_number":84,"context_line":"    \"\"\"Clear the request context for the current thread.\"\"\""},{"line_number":85,"context_line":"    if getattr(_STORE, _KEY, None):"},{"line_number":86,"context_line":"        delattr(_STORE, _KEY)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_fc113e53","line":86,"updated":"2016-03-24 07:53:29.000000000","message":"While your code is correct, I would prefer to catch AttributeError.","commit_id":"fc15e187450991e651bd3c7dbfc6bb3949dc504a"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"98c72d8cdf43f7ff2437005c03be7a5ca11bdea3","unresolved":false,"context_lines":[{"line_number":83,"context_line":"def _clear_local_context():"},{"line_number":84,"context_line":"    \"\"\"Clear the request context for the current thread.\"\"\""},{"line_number":85,"context_line":"    if getattr(_STORE, _KEY, None):"},{"line_number":86,"context_line":"        delattr(_STORE, _KEY)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba0121b8_bc30d402","line":86,"in_reply_to":"fa0719c6_fc113e53","updated":"2016-03-30 05:21:55.000000000","message":"I think victor means:\n\n  try:\n     delattr(_STORE, _KEY)\n  except AttributeError:\n    pass","commit_id":"fc15e187450991e651bd3c7dbfc6bb3949dc504a"}]}
