From b45384a26f6ffeb6180d092d2daecc90d6923a24 Mon Sep 17 00:00:00 2001 From: Brandon Bickford Date: Wed, 29 Aug 2018 16:20:59 -0700 Subject: [PATCH 1/2] Ignore unknown types --- blueox/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blueox/utils.py b/blueox/utils.py index 28d7a93..5a15b29 100644 --- a/blueox/utils.py +++ b/blueox/utils.py @@ -82,5 +82,4 @@ def msgpack_encode_default(obj): return time.mktime(obj.utctimetuple()) if isinstance(obj, datetime.date): return obj.strftime("%Y-%m-%d") - - raise TypeError("Unknown type: %r" % (obj,)) + return None From 6d6f53a5ef701acc1f364303e174d59545fadf72 Mon Sep 17 00:00:00 2001 From: Brandon Bickford Date: Thu, 30 Aug 2018 09:58:59 -0700 Subject: [PATCH 2/2] Bump version --- CHANGES | 3 +++ blueox/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 2de7816..b46839c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +blueox (0.11.6.4) + * Fix encoding of unknown types + blueox (0.11.6.3) * Fix handling of unicode strings diff --git a/blueox/__init__.py b/blueox/__init__.py index 8cc8cfc..2f3fc36 100644 --- a/blueox/__init__.py +++ b/blueox/__init__.py @@ -9,7 +9,7 @@ """ __title__ = 'blueox' -__version__ = '0.11.6.3' +__version__ = '0.11.6.4' __author__ = 'Rhett Garber' __author_email__ = 'rhettg@gmail.com' __license__ = 'ISC'