diff --git a/jenkinsapi/jenkins.py b/jenkinsapi/jenkins.py index ede54707..a004cb26 100644 --- a/jenkinsapi/jenkins.py +++ b/jenkinsapi/jenkins.py @@ -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