Skip to content

Commit 4494278

Browse files
pre-commit-ci[bot]lechat
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 876678a commit 4494278

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jenkinsapi/jenkins.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,11 @@ def __jenkins_is_unavailable(self):
555555
)
556556
# If there is a running job in Jenkins, the system message will
557557
# pop up but the Jenkins instance will return 200
558-
if res.status_code == 200 and "Jenkins is going to shut down" in \
559-
str(res.content, encoding="utf-8"):
558+
if (
559+
res.status_code == 200
560+
and "Jenkins is going to shut down"
561+
in str(res.content, encoding="utf-8")
562+
):
560563
time.sleep(1)
561564
continue
562565
return True

0 commit comments

Comments
 (0)