[Bug 336866] Re: When adding tag or updating description, lp_save() gives "HTTP Error 412: Precondition Failed"
William Grant
me at williamgrant.id.au
Thu Mar 20 01:49:44 UTC 2014
** Changed in: lazr.restful
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lazr.restfulclient in Ubuntu.
https://bugs.launchpad.net/bugs/336866
Title:
When adding tag or updating description, lp_save() gives "HTTP Error
412: Precondition Failed"
Status in lazr.restful:
Fix Released
Status in “lazr.restfulclient” package in Ubuntu:
Invalid
Status in “lazr.restfulclient” source package in Lucid:
Invalid
Bug description:
Getting this error consistently when attempting to add a tag using the
following code (which worked last time I ran it a few weeks ago).
if not tag in bug.tags:
#bug.tags.append(tag)
# Workaround bug #254901
tag_list = bug.tags
tag_list.append(tag)
bug.tags = tag_list
print " ---> Tagged ",tag
bug.lp_save()
I also tested with the commented line instead of the workaround code;
same error.
Traceback (most recent call last):
File "./process-new-bugs.py", line 175, in <module>
bug.append_tag("needs-lspci-vvnn")
File "/home/bryce/src/Arsenal/arsenal/contrib/arsenal_lib.py", line 125, in append_tag
self.bug.lp_save()
File "build/bdist.linux-x86_64/egg/launchpadlib/resource.py", line 489, in lp_save
File "build/bdist.linux-x86_64/egg/launchpadlib/_browser.py", line 266, in patch
File "build/bdist.linux-x86_64/egg/launchpadlib/_browser.py", line 212, in _request
launchpadlib.errors.HTTPError: HTTP Error 412: Precondition Failed
To manage notifications about this bug go to:
https://bugs.launchpad.net/lazr.restful/+bug/336866/+subscriptions
More information about the foundations-bugs
mailing list