Skip to content

Commit

Permalink
Merge pull request #1224 from SEKOIA-IO/fix/SentinelOneIdentityTimeout
Browse files Browse the repository at this point in the history
SentinelOne: handle Timeout exception
  • Loading branch information
squioc authored Dec 11, 2024
2 parents ec5c024 + 5265819 commit 3972af7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions SentinelOne/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 2024-12-10 - 1.19.7

### Changed

- Handle the timeout exception

## 2024-12-10 - 1.19.6

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion SentinelOne/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"name": "SentinelOne",
"uuid": "ff675e74-e5c1-47c8-a571-d207fc297464",
"slug": "sentinelone",
"version": "1.19.6",
"version": "1.19.7",
"categories": [
"Endpoint"
]
Expand Down
4 changes: 4 additions & 0 deletions SentinelOne/sentinelone_module/singularity/connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ async def async_run(self) -> None: # pragma: no cover
self.log(message=error.message, level="critical")
await asyncio.sleep(self.configuration.frequency)

except TimeoutError as error:
self.log(message="A timeout was raised by the client", level="warning")
await asyncio.sleep(self.configuration.frequency)

except Exception as error:
self.log_exception(error)
await asyncio.sleep(self.configuration.frequency)
Expand Down

0 comments on commit 3972af7

Please sign in to comment.