You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/04/22 12:27:41 UTC
[5/9] allura git commit: [#7836] ticket:739 Log exception
[#7836] ticket:739 Log exception
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/75056f1a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/75056f1a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/75056f1a
Branch: refs/heads/ib/7836
Commit: 75056f1a10b8ca63edc3c60466b494685f49da58
Parents: 23028fd
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Apr 6 14:37:48 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Wed Apr 22 09:44:41 2015 +0000
----------------------------------------------------------------------
Allura/allura/controllers/repository.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/75056f1a/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index d7b07eb..2dafa3c 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -374,7 +374,11 @@ class MergeRequestController(object):
count=self.req.discussion_thread.post_count)
try:
result['commits'] = self.req.commits
- except:
+ except Exception:
+ log.info(
+ "Can't get commits for merge request %s",
+ self.req.url(),
+ exc_info=True)
result['commits'] = []
result['error'] = True
return result