diff --git a/headphones/helpers.py b/headphones/helpers.py index 2b80f93b..e68abdd6 100644 --- a/headphones/helpers.py +++ b/headphones/helpers.py @@ -120,7 +120,10 @@ def now(): def get_age(date): - split_date = date.split('-') + try: + split_date = date.split('-') + except: + return False try: days_old = int(split_date[0])*365 + int(split_date[1])*30 + int(split_date[2])