Skip to content

Commit 0748975

Browse files
committed
small change
1 parent 0ec6113 commit 0748975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Interaction with JSON.
2121
// serialize StringDict into JSON string
2222
func json_dumps(self py.Object, args py.Tuple) (py.Object, error) {
2323
if len(args) == 0 {
24-
return nil, py.ExceptionNewf(py.IndexError, "Too few arguments")
24+
return nil, py.ExceptionNewf(py.TypeError, "Too few arguments")
2525
} else {
2626
if reflect.TypeOf(args[0]).String() == "py.StringDict" {
2727
data, err := json.Marshal(args[0])

0 commit comments

Comments
 (0)