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 17:27:16 UTC
[34/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/ae2d4e87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ae2d4e87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ae2d4e87
Branch: refs/heads/db/3154b
Commit: ae2d4e87db4cab4445cd2103e3b36188d76206e5
Parents: 315f269
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 15:25:58 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/ae2d4e87/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: