Ignore invalid dates (Fixes #894)

pull/888/head
Philipp Hagemeister 2013-06-19 22:13:16 +02:00
parent 213b715893
commit bb47437686
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ class FileDownloader(object):
filetime = timeconvert(timestr)
if filetime is None:
return filetime
# Ignore obviously invalid dates
if filetime == 0:
return
try:
os.utime(filename, (time.time(), filetime))
except: