Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit c74b7d8

Browse files
committed
Use json.dumps as default type converter
1 parent 03385dc commit c74b7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudant/feed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _translate(self, options):
100100
if isinstance(val, STRTYPE):
101101
translation[key] = val
102102
elif not isinstance(val, NONETYPE):
103-
arg_converter = TYPE_CONVERTERS.get(type(val))
103+
arg_converter = TYPE_CONVERTERS.get(type(val), json.dumps)
104104
translation[key] = arg_converter(val)
105105
except Exception as ex:
106106
raise CloudantArgumentError(115, key, ex)

0 commit comments

Comments
 (0)