def GetScanResults(config, scan_exec_id, new_vulns=False, new_ports=False):
    """
    The template class for

    Returns: An blank Dict.

    Raises:
    ValueError: On lack of key in config.
    """

    url = "https://{}/api/scan/v1/results/{}".format(config['api_host'], scan_exec_id)

    payload = {}

    # The API expects false and not False, so send strings not booleens
    payload = {'new_vulns': booleen2string(new_vulns),
               'new_ports': booleen2string(new_ports)}

    headers = {"Accept": "application/json"}

    try:
        r = requests.get(url,
                         headers=headers,
                         auth=(config['api_key'], ''),
                         params=payload)
        r.raise_for_status()
    except:
        raise ValueError(r.status_code % "HTTP error: %s")

    try:
        data = r.json()
    except:
        raise ValueError("Invalid JSON")
    else:
        return data
dataset/ETHPy150Open StackStorm/st2contrib/packs/alertlogic/actions/lib/get_scan_results.py/GetScanResults/swapped operands of `%`