def METHOD_NAME(known_flaws_path):
    """Read flaws detected by Safety in previous scans.
    Args:
        known_flaws_path (str): string containing the path to the Safety known flaws file.
    Returns:
        dict: dictionary containing the Safety known flaws properly classified.
    """
    try:
        with open(known_flaws_path, mode="r") as f:
            known_flaws = json.load(f)
    except json.decoder.JSONDecodeError or FileNotFoundError:
        known_flaws = {'known_issues': [], 'to_fix': []}
    return known_flaws