mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 16:45:32 +01:00
Fix for #2173: Uncaught exception in get_age
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user