My last comment is not completely right,
tasksbase.LPTasks.current_from_listurl() does what it should do.
The problem here is that the '+bug-text' url is used directly as an argument
for bugnumbers. I always thought that this would work without any problems, but
I'm obviously wrong. There are two possible solutions for this:
* explicitly allow +bugs-text urls as an argument for py-lp-bugs, then we
have to check the current code and find other cases where this fails. The
problem here is: whenever LP gets another interface, we need to check this
again.
* only support +bugs urls as an argument for py-lp-bugs, this is defacto the
current state (when +bugs-text urls are working properly then it's just luck)
I think we should go with the second solution. And then we should change
bughelper/bugnumbers to always convert +bugs-text urls to +bugs, so it's
always the task of the script using py-lp-bugs to ensure that +bugs urls
are used.
Markus
** Changed in: python-launchpad-bugs (Ubuntu)
Assignee: Markus Korn (thekorn) => (unassigned)
Status: In Progress => Confirmed
--
bugnumbers crashed with TypeError in get_current_task()
https://bugs.launchpad.net/bugs/203517
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs