bodhi/tools/metrics.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 96c09fd0ea39f425d22007be8878f6223d0c4dbc
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 28 16:01:52 2011 -0400
fix a bug in our metrics
diff --git a/bodhi/tools/metrics.py b/bodhi/tools/metrics.py
index 7193b46..cd816c5 100755
--- a/bodhi/tools/metrics.py
+++ b/bodhi/tools/metrics.py
@@ -94,7 +94,7 @@ def main():
if comment.text == 'This update has reached the stable karma
threshold and will be pushed to the stable updates repository':
data['num_stablekarma'] += 1
- elif comment.text.endswith('days in testing and can be pushed to
stable now if the maintainer wishes'):
+ elif comment.text and comment.text.endswith('days in testing and can
be pushed to stable now if the maintainer wishes'):
data['num_testingtime'] += 1
# For figuring out if an update has received feedback or not
Show replies by date