From 1a43349a1af6a6771e61be0f3c794ff7525aa1bf Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 8 Aug 2016 09:43:57 -0700 Subject: [PATCH] Python bugfix --- caravel/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caravel/utils.py b/caravel/utils.py index 9fc55c9a15f9..3c548488ac58 100644 --- a/caravel/utils.py +++ b/caravel/utils.py @@ -301,7 +301,7 @@ def json_iso_dttm_ser(obj): return val if isinstance(obj, datetime): obj = obj.isoformat() - if isinstance(obj, date): + elif isinstance(obj, date): obj = obj.isoformat() else: raise TypeError(