incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/4] git commit: [#6759] Only catch 404 errors when importing GC tickets
Date Wed, 16 Oct 2013 21:42:15 GMT
[#6759] Only catch 404 errors when importing GC tickets

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/b5cecd75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b5cecd75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b5cecd75

Branch: refs/heads/master
Commit: b5cecd7539e1d58a4e05008167b2aa6ed639ce94
Parents: 7ee8200
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Oct 16 20:37:11 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Oct 16 20:37:11 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/__init__.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b5cecd75/ForgeImporters/forgeimporters/google/__init__.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/__init__.py b/ForgeImporters/forgeimporters/google/__init__.py
index 6231cdb..725193f 100644
--- a/ForgeImporters/forgeimporters/google/__init__.py
+++ b/ForgeImporters/forgeimporters/google/__init__.py
@@ -159,8 +159,11 @@ class GoogleCodeProjectExtractor(ProjectExtractor):
                 try:
                     yield (int(issue_id), cls(project_name, 'issue', issue_id=issue_id))
                 except HTTPError as e:
-                    log.warn('Unable to load GC issue: %s #%s: %s', project_name, issue_id,
e)
-                    continue
+                    if e.code == 404:
+                        log.warn('Unable to load GC issue: %s #%s: %s: %s', project_name,
issue_id, e, e.url)
+                        continue
+                    else:
+                        raise
             start += limit
             extractor.get_page('issues_csv', parser=csv_parser, start=start)
 


Mime
View raw message