incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6813] Don't send success event if app not created
Date Thu, 31 Oct 2013 02:06:50 GMT
Updated Branches:
  refs/heads/tv/6813 [created] a941324b0


[#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/a941324b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a941324b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a941324b

Branch: refs/heads/tv/6813
Commit: a941324b0a2612637096514b8fb029e7bce3f492
Parents: ccf83fb
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Oct 31 02:06:33 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Oct 31 02:06:33 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/a941324b/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