You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/08/21 22:12:51 UTC
[35/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/4d58de2d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/4d58de2d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/4d58de2d
Branch: refs/heads/db/3154b
Commit: 4d58de2d828bfb069e02c5c21086622d60ea611c
Parents: 9e5c29a
Author: Anton Kasyanov <mi...@gmail.com>
Authored: Tue Aug 13 15:51:39 2013 +0300
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Aug 21 18:12:27 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/4d58de2d/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: