Cannot access bug_watch in a bugtask
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Gavin Panella |
Bug Description
Possibly I'm just confused. What I'm trying to do is detect if a given bug has been reported upstream. I'm not sure if there's a simple way of doing this, but so far I'm trying to do it this way:
# Count upstream watch
for peertask in bugtask.
if peertask.
if peertask.bug_watch:
print "Has a bug watch"
The dump indicates it has a bug_watch attr, but then complains that bug_watch doesn't exist...
<bug_task at https:/
attr: ['bug_target_
ops: ['transitionToA
coll: ['related_tasks']
entr: ['assignee', 'bug', 'owner']
Traceback (most recent call last):
File "./stats-bugs.py", line 40, in <module>
if peertask.
File "build/
File "build/
AttributeError: 'Entry' object has no attribute 'bug_watch'
Changed in malone: | |
assignee: | nobody → allenap |
status: | Triaged → In Progress |
Changed in malone: | |
status: | Fix Committed → Fix Released |
bug_watch is exported as a Choice instead of a ReferenceChoice. There was a similar (unreleased) bug to this yesterday! We must find a way to prevent these types of bug.