requestsync:

- post_bug: Catch IOError when setting bug importance (LP: #190061)
 - Added myself to list of authors
This commit is contained in:
Daniel Hahler 2008-04-16 02:14:55 +02:00
parent 6eba68a20d
commit fd5479e548
2 changed files with 6 additions and 1 deletions

1
debian/changelog vendored
View File

@ -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 <ubuntu@thequod.de> Wed, 16 Apr 2008 01:57:41 +0200

View File

@ -6,6 +6,7 @@
# Martin Pitt <martin.pitt@ubuntu.com>
# Steve Kowalik <stevenk@ubuntu.com>
# Michael Bienia <geser@ubuntu.com> (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()