change cannot parse error
authorSalim Fadhley <sal@stodge.org>
Sat, 29 Jun 2013 22:41:48 +0000 (23:41 +0100)
committerSalim Fadhley <sal@stodge.org>
Sat, 29 Jun 2013 22:41:48 +0000 (23:41 +0100)
jenkinsapi/jenkinsbase.py

index 1f20c63115e17e6c51e81495788d2cad9f7dcaa9..fe97914b7a14b5e979812471be2394ba2f324d21 100644 (file)
@@ -59,7 +59,7 @@ class JenkinsBase(object):
             return eval(response.text)
         except Exception:
             log.exception('Inappropriate content found at %s', url)
-            raise JenkinsAPIException('Cannot parse %s' % url)
+            raise JenkinsAPIException('Cannot parse %s' % response.content)
 
     @classmethod
     def python_api_url(cls, url):