changed server exception type from KeyError to IndexError in _parse_data