Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
TOUFIKIzakarya committed Dec 17, 2024
1 parent 291fbcd commit 9819731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Stormshield/stormshield_module/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def run(self, arguments: dict[str, Any]) -> dict[str, Any] | None:
):
with attempt:
response: Response = self.get_response(url, body, headers)

if response.json()["status"] in ["Pending", "Running"]:
continue

Check warning on line 87 in Stormshield/stormshield_module/base.py

View check run for this annotation

Codecov / codecov/patch

Stormshield/stormshield_module/base.py#L87

Added line #L87 was not covered by tests

Expand Down
2 changes: 1 addition & 1 deletion Stormshield/stormshield_module/wait_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def get_response(self, url: str, body: dict[str, Any] | None, headers: dict[str,

if execution_state.lower() == "failed":
raise RemoteTaskExecutionFailedError(result.json()["errorMessage"])

return result

0 comments on commit 9819731

Please sign in to comment.