get_version() throws jenkins.BadHTTPException when login is required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
New
|
Undecided
|
Unassigned |
Bug Description
Our site is set up so that all users need to login first, before they can see anything.
Because of that, when I call get_version, it will fail with the following:
>>> server.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
% self.server)
jenkins.
It can be fixed by the following patch:
diff --git a/jenkins/
index 9717f58..b443756 100755
--- a/jenkins/
+++ b/jenkins/
@@ -826,7 +826,7 @@ class Jenkins(object):
try:
- response = self._response_
+ response = self.jenkins_