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.
228867 New IBM T43 use hdaps-gl flash [No attachments]
---> Tagged needs-xorglog
Traceback (most recent call last):
File "./process-new-bugs.py", line 171, in <module>
bug.append_tag("needs-xorglog")
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
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)
tag_ list = bug.tags
tag_ list.append( tag)
bug. tags = tag_list
# Workaround bug #254901
print " ---> Tagged ",tag
bug. lp_save( )
I also tested with the commented line instead of the workaround code; same error.
228867 New IBM T43 use hdaps-gl flash [No attachments] new-bugs. py", line 171, in <module> append_ tag("needs- xorglog" ) bryce/src/ Arsenal/ arsenal/ contrib/ arsenal_ lib.py" , line 125, in append_tag bug.lp_ save() bdist.linux- x86_64/ egg/launchpadli b/resource. py", line 489, in lp_save bdist.linux- x86_64/ egg/launchpadli b/_browser. py", line 266, in patch bdist.linux- x86_64/ egg/launchpadli b/_browser. py", line 212, in _request errors. HTTPError: HTTP Error 412: Precondition Failed
---> Tagged needs-xorglog
Traceback (most recent call last):
File "./process-
bug.
File "/home/
self.
File "build/
File "build/
File "build/
launchpadlib.