Fix for #3622 - check if attr.strvalue exists
This commit is contained in:
parent
f2a5c5a85a
commit
389a212c63
1 changed files with 2 additions and 2 deletions
|
|
@ -2831,7 +2831,7 @@ class CmdExamine(ObjManipCommand):
|
||||||
|
|
||||||
key, category, value = attr.db_key, attr.db_category, attr.value
|
key, category, value = attr.db_key, attr.db_category, attr.value
|
||||||
valuetype = ""
|
valuetype = ""
|
||||||
if value is None and attr.strvalue is not None:
|
if value is None and getattr(attr, "strvalue", None) is not None:
|
||||||
value = attr.strvalue
|
value = attr.strvalue
|
||||||
valuetype = " |B[strvalue]|n"
|
valuetype = " |B[strvalue]|n"
|
||||||
typ = self._get_attribute_value_type(value)
|
typ = self._get_attribute_value_type(value)
|
||||||
|
|
@ -2850,7 +2850,7 @@ class CmdExamine(ObjManipCommand):
|
||||||
|
|
||||||
key, category, value = attr.db_key, attr.db_category, attr.value
|
key, category, value = attr.db_key, attr.db_category, attr.value
|
||||||
valuetype = ""
|
valuetype = ""
|
||||||
if value is None and attr.strvalue is not None:
|
if value is None and getattr(attr, "strvalue", None) is not None:
|
||||||
value = attr.strvalue
|
value = attr.strvalue
|
||||||
valuetype = " |B[strvalue]|n"
|
valuetype = " |B[strvalue]|n"
|
||||||
typ = self._get_attribute_value_type(value)
|
typ = self._get_attribute_value_type(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue