allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [1/2] allura git commit: If an entry point is specified incorrectly, provide helpful error message and continue
Date Wed, 31 Jan 2018 15:13:57 GMT
Repository: allura
Updated Branches:
  refs/heads/master 8666cbb17 -> e7aa4c2a0


If an entry point is specified incorrectly, provide helpful error message and continue


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

Branch: refs/heads/master
Commit: 36dd28047e14ff27e637fb7c04d276c498d69c3c
Parents: 8666cbb
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Jan 30 17:33:35 2018 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Jan 30 17:34:39 2018 -0500

----------------------------------------------------------------------
 Allura/allura/lib/app_globals.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/36dd2804/Allura/allura/lib/app_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index 7397638..5453055 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -252,7 +252,10 @@ class Globals(object):
         def _cache_eps(section_name, dict_cls=dict):
             d = dict_cls()
             for ep in h.iter_entry_points(section_name):
-                value = ep.load()
+                try:
+                    value = ep.load()
+                except Exception:
+                    log.exception('Could not load entry point [%s] %s', section_name, ep)
                 d[ep.name] = value
             return d
 


Mime
View raw message