From c08ad2b1fb97b2b804febce03851e14f7ee58232 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 8 Oct 2022 14:00:03 -0700 Subject: [PATCH] Avoid crash when saving debug info --- scripts/wk/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wk/debug.py b/scripts/wk/debug.py index e0fe75bf..3403d1f3 100644 --- a/scripts/wk/debug.py +++ b/scripts/wk/debug.py @@ -39,7 +39,7 @@ def generate_object_report(obj, indent=0): # Add attribute to report (expanded if necessary) if isinstance(attr, dict): report.append(f'{name}:') - for key, value in sorted(attr.items()): + for key, value in attr.items(): report.append(f'{" "*(indent+1)}{key}: {str(value)}') else: report.append(f'{" "*indent}{name}: {str(attr)}')