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 != "":