diff --git a/CHANGES b/CHANGES index 70bd8c9..a778aec 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/intezer_sdk/__init__.py b/intezer_sdk/__init__.py index 73aeb17..a61a499 100644 --- a/intezer_sdk/__init__.py +++ b/intezer_sdk/__init__.py @@ -1 +1 @@ -__version__ = '1.16.5' +__version__ = '1.16.6' diff --git a/intezer_sdk/family.py b/intezer_sdk/family.py index cf6c9eb..f941cbf 100644 --- a/intezer_sdk/family.py +++ b/intezer_sdk/family.py @@ -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: @@ -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