Don't assert an error on bad date formats

This commit is contained in:
Sam Wenham 2015-01-26 21:12:27 +00:00
parent 3bdd1ad737
commit a5e7fcf435

View File

@ -112,7 +112,8 @@ def ParseDate(tripdate, year):
yadd = int(year[:2]) * 100
day, month, year = int(mdategoof.group(1)), int(mdategoof.group(2)), int(mdategoof.group(4)) + yadd
else:
assert False, tripdate
continue
#assert False, tripdate
return datetime.date(year, month, day)
# 2007, 2008, 2006