import requests
import logging


def get_KB_Data(url,req_headers):
    """submit a URL request and return the result (or error message) """
    try:
        q = requests.get(url, headers=req_headers)
        return q
    except:
        #print('error in request: {}'.format(sys.exc_info()[0]))
        logging.exception('unexpected error getting data at url')
        return ''