Skip to content

Commit

Permalink
Merge pull request #108 from intezer/fix/url-analysis-without-analysi…
Browse files Browse the repository at this point in the history
…s-id

fix/url-analysis-without-analysis-id
  • Loading branch information
davidt99 authored Aug 2, 2023
2 parents 8be48e7 + 411d300 commit d02c955
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.18.5
______
- Fix URL analysis report bug.

1.18.3
______
- Fix Apache license naming.
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.18.4'
__version__ = '1.18.5'
3 changes: 3 additions & 0 deletions intezer_sdk/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ def downloaded_file_analysis(self) -> Optional[FileAnalysis]:
if 'downloaded_file' not in self._report:
return None

if not self._report['downloaded_file'].get('analysis_id'):
return None

file_analysis_id = self._report['downloaded_file']['analysis_id']
self._file_analysis = FileAnalysis.from_analysis_id(file_analysis_id, self._api.api)
return self._file_analysis
Expand Down

0 comments on commit d02c955

Please sign in to comment.