reads a CSV file and converts it to a HTML List

def read_csv_to_html_list(csvFile):
    """
    reads a CSV file and converts it to a HTML List
    """
    txt = ''
    with open(csvFile) as csv_file:
        for row in csv.reader(csv_file, delimiter=','):
            txt += '<div id="table_row">'
            for col in row:
                txt += " "
                try:
                    txt += col
                except Exception:
                    txt += 'Error'
                txt += " "
            txt += "</div>\n"
    return txt