Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and lechat committed Aug 19, 2023
1 parent 876678a commit 4494278
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jenkinsapi/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,11 @@ def __jenkins_is_unavailable(self):
)
# If there is a running job in Jenkins, the system message will
# pop up but the Jenkins instance will return 200
if res.status_code == 200 and "Jenkins is going to shut down" in \
str(res.content, encoding="utf-8"):
if (
res.status_code == 200
and "Jenkins is going to shut down"
in str(res.content, encoding="utf-8")
):
time.sleep(1)
continue
return True
Expand Down

0 comments on commit 4494278

Please sign in to comment.