From fd5479e548588f7d86cc7e79dee47c52680919a4 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 16 Apr 2008 02:14:55 +0200 Subject: [PATCH] requestsync: - post_bug: Catch IOError when setting bug importance (LP: #190061) - Added myself to list of authors --- debian/changelog | 1 + requestsync | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index eb6e38a..29ff599 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,7 @@ ubuntu-dev-tools (0.31) hardy; urgency=low Launchpad and mail code path. - Do not fallback to submitting by email, if posting to Launchpad failed. This hasn't been requested and therefore should not get done. + - post_bug: Catch IOError when setting bug importance (LP: #190061) -- Daniel Hahler Wed, 16 Apr 2008 01:57:41 +0200 diff --git a/requestsync b/requestsync index af8dc55..89b329b 100755 --- a/requestsync +++ b/requestsync @@ -6,6 +6,7 @@ # Martin Pitt # Steve Kowalik # Michael Bienia (python-launchpad-bugs support) +# Daniel Hahler (http://daniel.hahler.de/) # # License: GPLv2, see /usr/share/common-licenses/GPL @@ -272,7 +273,10 @@ def post_bug(source_package, subscribe, status, bugtitle, bugtext): Bug.authentication = launchpad_cookiefile bug = Bug.New(product = product, summary = bugtitle, description = bugtext) - bug.importance = 'Wishlist' + try: + bug.importance = 'Wishlist' + except IOError, s: + print "Warning: setting importance failed: %s" % s bug.status = status bug.subscriptions.add(subscribe) bug.commit()