allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6813] Don't send success event if app not created
Date Fri, 01 Nov 2013 17:06:18 GMT
Updated Branches:
  refs/heads/master 4e3ac0874 -> e0b8c01d8


[#6813] Don't send success event if app not created

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/master
Commit: e0b8c01d8896ed347fa47902899e0d663e12b3fc
Parents: 4e3ac08
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Oct 31 02:06:33 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Nov 1 17:06:11 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e0b8c01d/ForgeImporters/forgeimporters/base.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/base.py b/ForgeImporters/forgeimporters/base.py
index cae4986..68282ad 100644
--- a/ForgeImporters/forgeimporters/base.py
+++ b/ForgeImporters/forgeimporters/base.py
@@ -118,7 +118,8 @@ def import_tool(importer_path, project_name=None, mount_point=None, mount_label=
     with ImportErrorHandler(importer, project_name, c.project) as handler:
         app = importer.import_tool(c.project, c.user, project_name=project_name,
                 mount_point=mount_point, mount_label=mount_label, **kw)
-        handler.success(app)
+        if app:
+            handler.success(app)
 
 
 class ProjectExtractor(object):


Mime
View raw message