)]}'
{"cinder/api/validation/validators.py":[{"author":{"_account_id":25903,"name":"Vu Cong Tuan","email":"tuanvc@vn.fujitsu.com","username":"tuanvu"},"change_message_id":"98112508a1526d1baae448c6e7b03a4b9b1f5ac6","unresolved":false,"context_lines":[{"line_number":199,"context_line":"    try:"},{"line_number":200,"context_line":"        if isinstance(instance, six.text_type):"},{"line_number":201,"context_line":"            instance \u003d instance.encode(\u0027utf-8\u0027)"},{"line_number":202,"context_line":"        base64.decode_as_bytes(instance)"},{"line_number":203,"context_line":"    except TypeError:"},{"line_number":204,"context_line":"        # The name must be string type. If instance isn\u0027t string type, the"},{"line_number":205,"context_line":"        # TypeError will be raised at here."}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_b6e2a035","line":202,"updated":"2018-11-02 07:40:14.000000000","message":"\"decode_as_bytes\" catches binascii.Error and raises TypeError [1]. So, we get the same behavior here to return False if we encounter it.\n\n[1] https://github.com/openstack/oslo.serialization/blob/181de14da10a84a04cb4f54277d96e1ccb0b124e/oslo_serialization/base64.py#L75-L77","commit_id":"70a79d7b456e993e8be13a891871bf3b72b79929"}]}
