Skip to content

Commit 060cd75

Browse files
committed
simplify exception_repr a bit
1 parent 82101d9 commit 060cd75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

vm/src/exceptions.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ fn exception_repr(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
185185
let exc_name = exc.class().name.clone();
186186
let joined_str = match args_repr.len() {
187187
0 => format!("{}()", exc_name),
188-
1 => format!("{}({})", exc_name, args_repr[0].to_string()),
189188
_ => format!("{}({})", exc_name, args_repr.join(", ")),
190189
};
191190
Ok(vm.new_str(joined_str))

0 commit comments

Comments
 (0)