We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec6113 commit 0748975Copy full SHA for 0748975
json/json.go
@@ -21,7 +21,7 @@ Interaction with JSON.
21
// serialize StringDict into JSON string
22
func json_dumps(self py.Object, args py.Tuple) (py.Object, error) {
23
if len(args) == 0 {
24
- return nil, py.ExceptionNewf(py.IndexError, "Too few arguments")
+ return nil, py.ExceptionNewf(py.TypeError, "Too few arguments")
25
} else {
26
if reflect.TypeOf(args[0]).String() == "py.StringDict" {
27
data, err := json.Marshal(args[0])
0 commit comments