Skip to content

Commit

Permalink
Merge pull request #88 from intezer/fix/family-tag-cache
Browse files Browse the repository at this point in the history
fix(family): handle caching for tags when there is no tags
  • Loading branch information
davidt99 authored Mar 29, 2023
2 parents aa5d6e1 + 30e8e97 commit 83012b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.16.6
____
- Fix family tag caching when no tags are returned


1.16.5
____
- Add verdict and sub_verdict properties to FileAnalysis
Expand Down
2 changes: 1 addition & 1 deletion intezer_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.16.5'
__version__ = '1.16.6'
9 changes: 3 additions & 6 deletions intezer_sdk/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ def fetch_info(self):

self._name = info['family_name']
self._type = info['family_type']

family_tags = info.get('family_tags')
if family_tags:
self._tags = family_tags
self._tags = info.get('family_tags', [])

@property
def name(self) -> str:
Expand All @@ -61,8 +58,8 @@ def type(self) -> str:
return self._type

@property
def tags(self) -> Optional[List[str]]:
if not self._tags:
def tags(self) -> List[str]:
if self._tags is None:
self.fetch_info()

return self._tags
Expand Down

0 comments on commit 83012b2

Please sign in to comment.