Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed that GSB value is not retrieved in json causing "index out of range" error.
This fix checks if fields is available, otherwise go ahead.
If this field is not available anymore we can skip it and remove also from template long. I don't find documentation about this.
Online:
The Hive:
Before the fix:
{ "errorMessage": "Invalid output\nTraceback (most recent call last):\n File \"URLhaus/URLhaus_analyzer.py\", line 50, in <module>\n URLhausAnalyzer().run()\n File \"URLhaus/URLhaus_analyzer.py\", line 23, in run\n 'results': self.search(self.get_data())\n File \"URLhaus/URLhaus_analyzer.py\", line 17, in search\n return URLhaus(indicator).search()\n File \"/opt/Cortex-Analyzers/analyzers/URLhaus/URLhaus.py\", line 42, in search\n return self.parse(res)\n File \"/opt/Cortex-Analyzers/analyzers/URLhaus/URLhaus.py\", line 62, in parse\n \"reporter\": cols[5].text\nIndexError: list index out of range\n", "input": null, "success": false, "artifacts": [] }