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 d1a584f commit 8fee5a8Copy full SHA for 8fee5a8
vm/src/stdlib/json.rs
@@ -223,8 +223,10 @@ fn loads(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
223
.get_item("JSONDecodeError")
224
.unwrap();
225
let exc = vm.new_exception(json_decode_error, format!("{}", err));
226
- vm.ctx.set_item(&exc, "lineno", vm.ctx.new_int(err.line().into()));
227
- vm.ctx.set_item(&exc, "colno", vm.ctx.new_int(err.column().into()));
+ vm.ctx
+ .set_item(&exc, "lineno", vm.ctx.new_int(err.line().into()));
228
229
+ .set_item(&exc, "colno", vm.ctx.new_int(err.column().into()));
230
exc
231
})
232
}
0 commit comments