9155: Unhandled AttributeError when db.get_tag_from_handle returns None
This commit is contained in:
parent
657068663e
commit
9c8389f4ef
@ -532,8 +532,9 @@ class PeopleBaseModel(BaseModel):
|
|||||||
"""
|
"""
|
||||||
cached, value = self.get_cached_value(tag_handle, "TAG_NAME")
|
cached, value = self.get_cached_value(tag_handle, "TAG_NAME")
|
||||||
if not cached:
|
if not cached:
|
||||||
value = self.db.get_tag_from_handle(tag_handle).get_name()
|
if self.db.get_tag_from_handle(tag_handle):
|
||||||
self.set_cached_value(tag_handle, "TAG_NAME", value)
|
value = self.db.get_tag_from_handle(tag_handle).get_name()
|
||||||
|
self.set_cached_value(tag_handle, "TAG_NAME", value)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def column_tag_color(self, data):
|
def column_tag_color(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user