year parsing

This commit is contained in:
Sanj 2012-11-15 15:17:00 +05:30
parent d566fedf4c
commit c4f78a0b54

View File

@ -34,7 +34,7 @@ def import_csv(path=csv_path):
for line in lines:
try:
year = int(line[1].replace('"', '')[0:4])
year = int(line[1].replace('"', '').strip()[0:4])
year_error = False
except:
year = None