9155: proper fix

This commit is contained in:
Doug Blank 2016-01-06 15:39:46 +01:00 committed by romjerome
parent d6f3149a38
commit ed0001ba0e

View File

@ -532,8 +532,9 @@ class PeopleBaseModel(BaseModel):
"""
cached, value = self.get_cached_value(tag_handle, "TAG_NAME")
if not cached:
if tag_handle:
value = self.db.get_tag_from_handle(tag_handle).get_name()
tag = self.db.get_tag_from_handle(tag_handle)
if tag:
value = tag.get_name()
self.set_cached_value(tag_handle, "TAG_NAME", value)
return value