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.
2 parents 777b04a + 3972239 commit 7a680c3Copy full SHA for 7a680c3
vm/src/obj/objstr.rs
@@ -514,7 +514,7 @@ impl PyString {
514
fn modulo(&self, values: PyObjectRef, vm: &VirtualMachine) -> PyResult {
515
let format_string_text = &self.value;
516
let format_string = CFormatString::from_str(format_string_text)
517
- .map_err(|err| vm.new_value_error(format!("{}", err)))?;
+ .map_err(|err| vm.new_value_error(err.to_string()))?;
518
do_cformat(vm, format_string, values.clone())
519
}
520
0 commit comments