Skip to content

Commit

Permalink
change for review
Browse files Browse the repository at this point in the history
  • Loading branch information
DBischoff0 committed Jan 29, 2025
1 parent 20d8a4f commit b365277
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, data):
self.proofpoint_trap_host = "https://" + self.proofpoint_trap_host

self.proofpoint_trap_apikey = data["proofpoint_trap_apikey"]
self.proofpoint_trap_timeout = int(data.get("proofpoint_trap_timeout", 20))
self.proofpoint_trap_timeout = int(data["proofpoint_trap_timeout"])

self.session = None

Expand All @@ -76,6 +76,9 @@ def _connect(self):
raise ProofpointTRAPAPIError(err)

def __execute_query(self, url, query=None):
if self.evt_stop.is_set():
return
self.update_lock()

self._connect()

Expand Down

0 comments on commit b365277

Please sign in to comment.