Skip to content

Commit

Permalink
Update src/crate/client/http.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Motl <andreas.motl@crate.io>
  • Loading branch information
SStorm and amotl authored Jul 27, 2023
1 parent 5236b05 commit 51dd3de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/crate/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51dd3de

Please sign in to comment.