Skip to content

Commit

Permalink
Add exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloperezj committed Sep 16, 2024
1 parent fc887ae commit 70ac99a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ def fetch_indicators_command(client: Client,
if (indicator_obj.get('gti_threat_score') or 0) >= minimum_score:
indicators.append(indicator_obj)
else:
existing_indicators = list(IndicatorsSearcher(value=indicator_obj['value']))
try:
existing_indicators = list(IndicatorsSearcher(value=indicator_obj['value']))
except SystemExit as exc:
demisto.debug(exc)
existing_indicators = []
if len(existing_indicators) > 0 and int(existing_indicators[0].get('total', 0)) > 0:
indicators.append(indicator_obj)

Expand Down

0 comments on commit 70ac99a

Please sign in to comment.