Fix for #2173: Uncaught exception in get_age

This commit is contained in:
rembo10
2015-07-06 00:21:26 -07:00
parent 872ec6b11c
commit 9149f62760

View File

@@ -149,7 +149,7 @@ def get_age(date):
try:
days_old = int(split_date[0]) * 365 + int(split_date[1]) * 30 + int(split_date[2])
except IndexError:
except (IndexError,ValueError):
days_old = False
return days_old