bodhi/controllers.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
New commits:
commit 7058f4e6363b6b36b414dca706e7e74ff00c9a92
Author: Luke Macken <lmacken(a)redhat.com>
Date: Sat Jun 26 23:09:16 2010 -0400
Gracefully handle private bugs when they are added to existing updates (#442)
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 72d849c..ac10b22 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -899,10 +899,13 @@ class Root(controllers.RootController):
bug = bugzilla.getbug(bug).bug_id
if bug not in original_bugs:
log.debug("Updating newly added bug: %s" % bug)
- Bugzilla.byBz_id(bug).add_comment(update,
- "%s has been submitted as an update for %s.\n%s" %
- (update.title, release.long_name,
- config.get('base_address') +
tg_url(update.get_url())))
+ try:
+ Bugzilla.byBz_id(bug).add_comment(update,
+ "%s has been submitted as an update for
%s.\n%s" %
+ (update.title, release.long_name,
+ config.get('base_address') +
tg_url(update.get_url())))
+ except SQLObjectNotFound:
+ log.debug('Bug #%d not found in our database' % bug)
else:
# Notify security team of newly submitted security updates
if update.type == 'security':
Show replies by date