diff --git a/src/crate/client/http.py b/src/crate/client/http.py index 05315939..76df121c 100644 --- a/src/crate/client/http.py +++ b/src/crate/client/http.py @@ -88,9 +88,7 @@ class CrateJsonEncoder(json.JSONEncoder): epoch_naive = datetime(1970, 1, 1) def default(self, o): - if isinstance(o, Decimal): - return str(o) - if isinstance(o, UUID): + if isinstance(o, (Decimal, UUID)): return str(o) if isinstance(o, datetime): if o.tzinfo is not None: