You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/12/07 17:11:48 UTC

[21/21] git commit: Note that SourceForge redirects to login page on unknown CSV pages

Note that SourceForge redirects to login page on unknown CSV pages

Fixes ticket:5357


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

Branch: refs/heads/cj/4691
Commit: b8f3d98983ff00e6cfa8c7e424ef24d6e04df730
Parents: 50cc989
Author: Jon Schewe <jp...@mtu.net>
Authored: Tue Nov 27 22:06:28 2012 -0600
Committer: Jon Schewe <jp...@mtu.net>
Committed: Tue Nov 27 22:13:13 2012 -0600

----------------------------------------------------------------------
 scripts/trac_export.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b8f3d989/scripts/trac_export.py
----------------------------------------------------------------------
diff --git a/scripts/trac_export.py b/scripts/trac_export.py
index 0a0f83c..ae3e55f 100644
--- a/scripts/trac_export.py
+++ b/scripts/trac_export.py
@@ -199,7 +199,7 @@ class TracExport(object):
         except urllib2.HTTPError, e:
             if 'emulated' in e.msg:
                 body = e.fp.read()
-                if 'beyond the number of pages in the query' in body:
+                if 'beyond the number of pages in the query' in body or 'Log in with a SourceForge account' in body:
                     raise StopIteration
             raise
         reader = csv.reader(f)