From 9149f62760d9d5a49954f96fc2be9c4ed7401d67 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 6 Jul 2015 00:21:26 -0700 Subject: [PATCH] Fix for #2173: Uncaught exception in get_age --- headphones/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/helpers.py b/headphones/helpers.py index 238b6dea..55a8778a 100644 --- a/headphones/helpers.py +++ b/headphones/helpers.py @@ -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