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 2013/08/23 18:58:33 UTC

[33/50] git commit: [#3154] ticket:411 removed try near zip_and_cleanup

[#3154] ticket:411 removed try near zip_and_cleanup


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

Branch: refs/heads/cj/6530
Commit: b2e246d7ff6ab5e98049ef194fa87b724250f388
Parents: 1c24bb7
Author: Anton Kasyanov <mi...@gmail.com>
Authored: Tue Aug 13 15:51:39 2013 +0300
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Aug 22 20:04:44 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tasks/export_tasks.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b2e246d7/Allura/allura/tasks/export_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tasks/export_tasks.py b/Allura/allura/tasks/export_tasks.py
index 0eb99e0..3e2a9af 100644
--- a/Allura/allura/tasks/export_tasks.py
+++ b/Allura/allura/tasks/export_tasks.py
@@ -72,10 +72,9 @@ def bulk_export(project_shortname, tools, username, neighborhood):
     except:
         log.error('Something went wrong during export of project metadata', exc_info=True)
 
-    try:
-        zip_and_cleanup(project)
-    except:
-        log.error('Something went wrong during zipping exported data.', exc_info=True)
+    # If that fails, we need to let it fail
+    # there won't be a valid zip file for the user to get.
+    zip_and_cleanup(project)
 
     user = M.User.by_username(username)
     if not user: