allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [5/5] allura git commit: [#8033] more careful check for c.app
Date Fri, 11 Dec 2015 19:33:02 GMT
[#8033] more careful check for c.app


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

Branch: refs/heads/db/8033
Commit: e1aeec7f0b33c70cbbdec8027ed799fdd948be02
Parents: d274bc6
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Dec 11 12:12:07 2015 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Dec 11 14:32:50 2015 -0500

----------------------------------------------------------------------
 Allura/allura/model/project.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e1aeec7f/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index 1dfd3a3..28315ad 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -549,7 +549,7 @@ class Project(SearchIndexable, MappedClass, ActivityNode, ActivityObject):
                 log.exception('AppConfig %s references invalid tool %s',
                               ac._id, ac.tool_name)
                 continue
-            if c.app and c.app.config._id == ac._id:
+            if getattr(c, 'app', None) and c.app.config._id == ac._id:
                 # slight performance gain (depending on the app) by using the current app
if we're on it
                 app = c.app
             else:


Mime
View raw message