Avoid crash when saving debug info
This commit is contained in:
parent
591fb8e138
commit
c08ad2b1fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue