allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [32/50] git commit: [#3154] ticket:411 removed try near zip_and_cleanup
Date Thu, 22 Aug 2013 21:53:58 GMT
[#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/master
Commit: b2e246d7ff6ab5e98049ef194fa87b724250f388
Parents: 1c24bb7
Author: Anton Kasyanov <mind1master@gmail.com>
Authored: Tue Aug 13 15:51:39 2013 +0300
Committer: Dave Brondsema <dbrondsema@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:


Mime
View raw message