From 70b541280ab3551a22483998f2d01a605f6cad3d Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Thu, 18 Mar 2021 03:12:50 -0700 Subject: [PATCH] my.core.serialize: formatting fixes --- my/core/serialize.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/my/core/serialize.py b/my/core/serialize.py index acf8c94..e368d67 100644 --- a/my/core/serialize.py +++ b/my/core/serialize.py @@ -25,7 +25,6 @@ def _default_encode(obj: Any) -> Any: return obj._asdict() if isinstance(obj, datetime.timedelta): return obj.total_seconds() - if isinstance(obj, Exception): return error_to_json(obj) # note: _serialize would only be called for items which aren't already @@ -142,7 +141,6 @@ def test_default_serializer() -> None: import pytest import json as jsn # dont cause possible conflicts with module code - class Unserializable: def __init__(self, x: int): self.x = x