yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-496. Fix UnboundLocalError in releasedocmaker.py.
Date Tue, 28 Mar 2017 16:17:41 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 4028e6c18 -> 2971eff54


YETUS-496. Fix UnboundLocalError in releasedocmaker.py.

Signed-off-by: Allen Wittenauer <aw@apache.org>

closes apache/yetus#9


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/2971eff5
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/2971eff5
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/2971eff5

Branch: refs/heads/master
Commit: 2971eff54d659538f1076b766250385418b6585f
Parents: 4028e6c
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Wed Mar 22 02:09:55 2017 +0900
Committer: Allen Wittenauer <aw@apache.org>
Committed: Tue Mar 28 09:14:34 2017 -0700

----------------------------------------------------------------------
 release-doc-maker/releasedocmaker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/2971eff5/release-doc-maker/releasedocmaker.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py
index abe99b3..b59772b 100755
--- a/release-doc-maker/releasedocmaker.py
+++ b/release-doc-maker/releasedocmaker.py
@@ -323,8 +323,8 @@ class JiraIter(object):
         """send query to JIRA and collect with retries"""
         try:
             resp = get_jira(JIRA_BASE_URL + "/rest/api/2/search?%s" % params)
-        except (urllib2.HTTPError, urllib2.URLError, httplib.BadStatusLine):
-            JiraIter.retry_load(resp, params, fail_count)
+        except (urllib2.URLError, httplib.BadStatusLine) as err:
+            return JiraIter.retry_load(err, params, fail_count)
 
         try:
             data = json.loads(resp.read())


Mime
View raw message