We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b3983b commit cf14fdeCopy full SHA for cf14fde
mygeotab/serializers.py
@@ -48,7 +48,8 @@ def object_serializer(obj):
48
if hasattr(obj, 'isoformat'):
49
return dates.format_iso_datetime(obj)
50
else:
51
- raise TypeError("Unserializable object {} of type {}".format(obj, type(obj)))
+ # Let the base class default method raise the TypeError
52
+ return json.JSONEncoder.default(obj)
53
54
55
def object_deserializer(obj):
0 commit comments