allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [allura] 03/08: [#8333] fix logging statement
Date Tue, 28 Jan 2020 20:16:18 GMT
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 1bccf4eb3d3f8d8a282f53f0d199bc8ff8905dd0
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Mon Sep 16 16:18:14 2019 -0400

    [#8333] fix logging statement
---
 Allura/allura/model/repository.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index b5678bb..be077d3 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -574,8 +574,8 @@ class Repository(Artifact, ActivityObject):
             branch = self.app.default_branch_name
         try:
             return self.commit(branch)
-        except:  # pragma no cover
-            log.exception('Cannot get latest commit for a branch', branch)
+        except Exception:
+            log.exception('Cannot get latest commit for a branch: %s', branch)
             return None
 
     def url(self):


Mime
View raw message