Skip to content

Commit 9cba8d2

Browse files
committed
Avoid crash debug logging circular dictionaries.
1 parent 84ef6e3 commit 9cba8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/pyobject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ impl PyObject {
914914
"{{ {} }}",
915915
elements
916916
.iter()
917-
.map(|elem| format!("{}: {}", elem.0, elem.1.borrow().str()))
917+
.map(|elem| format!("{}: ...", elem.0))
918918
.collect::<Vec<_>>()
919919
.join(", ")
920920
),

0 commit comments

Comments
 (0)