Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 9efd2fa

Browse files
author
Kleissner
committed
Fix missing check for status = 3 (invalid selector) in Identity Portal client search function "idsearch"
1 parent 256dbbc commit 9efd2fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

intelx/intelx_identity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def idsearch(self, term, maxresults=100, buckets="", timeout=5, datefrom="", dat
5656
if (maxresults <= 0):
5757
self.terminate_search(search_id)
5858
done = True
59+
if r['status'] == 3:
60+
self.terminate_search(search_id)
61+
done = True
5962
return {'records': results}
6063

6164
def terminate_search(self, id):

0 commit comments

Comments
 (0)