Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A0C1C200C45 for ; Tue, 28 Mar 2017 18:17:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F2B8160B89; Tue, 28 Mar 2017 16:17:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E57BB160B7E for ; Tue, 28 Mar 2017 18:17:42 +0200 (CEST) Received: (qmail 8581 invoked by uid 500); 28 Mar 2017 16:17:41 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 8571 invoked by uid 99); 28 Mar 2017 16:17:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2017 16:17:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 27A79DFDCD; Tue, 28 Mar 2017 16:17:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Message-Id: <9edada52cf7d42ceb555f819a3d88e54@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: yetus git commit: YETUS-496. Fix UnboundLocalError in releasedocmaker.py. Date: Tue, 28 Mar 2017 16:17:41 +0000 (UTC) archived-at: Tue, 28 Mar 2017 16:17:43 -0000 Repository: yetus Updated Branches: refs/heads/master 4028e6c18 -> 2971eff54 YETUS-496. Fix UnboundLocalError in releasedocmaker.py. Signed-off-by: Allen Wittenauer 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 Authored: Wed Mar 22 02:09:55 2017 +0900 Committer: Allen Wittenauer 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())