allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 02/05: [#8333] fix logging statement
Date Tue, 17 Sep 2019 19:47:58 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8333
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 4b9316d5727d67ad02ce57fa94f95d5eeb4ad626
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 2591059..96bbfc4 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -581,8 +581,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