Fix bug in examine attrvalue. Resolves #2175.

This commit is contained in:
Griatch 2020-07-27 14:56:26 +02:00
parent dd5c6274b7
commit 7c9705d90a

View file

@ -2375,9 +2375,8 @@ class CmdExamine(ObjManipCommand):
value (any): Attribute value.
Returns:
"""
value = utils.to_str(value)
if crop:
if not isinstance(value, str):
value = utils.to_str(value)
value = utils.crop(value)
value = inlinefunc_raw(ansi_raw(value))
if category: