From fcc1418b952abab7661e82721607b762b15ef7d4 Mon Sep 17 00:00:00 2001 From: Krishnan Sanjay Date: Tue, 26 May 2020 12:14:31 -0500 Subject: [PATCH] Update core.py --- hw5/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw5/core.py b/hw5/core.py index 769b515..5b416e2 100644 --- a/hw5/core.py +++ b/hw5/core.py @@ -8,7 +8,7 @@ import os import json def imdb_title_words(): - f = open('title.csv','r') + f = open('title.csv','r', errors='replace') line = f.readline() while line != "": @@ -22,7 +22,7 @@ def imdb_title_words(): f.close() def imdb_years(): - f = open('title.csv','r') + f = open('title.csv','r', errors='replace') line = f.readline() while line != "": -- libgit2 0.25.0