Update rpsystem.py

This commit is contained in:
InspectorCaracal 2022-04-15 14:58:12 -06:00 committed by GitHub
parent f1b329c1be
commit 08257e5441

View file

@ -691,7 +691,7 @@ class SdescHandler:
"""
Cache data from storage
"""
self.sdesc = self.obj.attributes.get("_sdesc", default=obj.key)
self.sdesc = self.obj.attributes.get("_sdesc", default=self.obj.key)
sdesc_regex = self.obj.attributes.get("_sdesc_regex", default="")
if not sdesc_regex:
permutation_string = " ".join([self.key] + self.aliases.all())