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 a62d7ad + 940c8f4 commit a4931e7Copy full SHA for a4931e7
Framework/Utilities/CommonUtil.py
@@ -294,8 +294,11 @@ def prettify(key, val):
294
except:
295
val_output = str(val)
296
297
- if len(val_output) > prettify_limit:
298
- val_output = f"{val_output[:prettify_limit]}\n...(truncated {len(val_output)-prettify_limit} chars)"
+ if isinstance(prettify_limit, int):
+ if len(val_output) > prettify_limit:
299
+ val_output = f"{val_output[:prettify_limit]}\n...(truncated {len(val_output)-prettify_limit} chars)"
300
+ else:
301
+ val_output = str(val)
302
303
color = Fore.MAGENTA
304
print(color + f"{key} = ", end="")
0 commit comments