2009-03-17 14:52:14 |
Ursula Junque |
description |
As seen in OOPS-1171EC107, a user tried, using the API, to getSeries of Ubuntu distro trying to use the display name, "Hardy", and it oopsed.
>>> distro = lp.distributions['ubuntu']
>>> distro.getSeries('Hardy')
NotFoundError: u'Hardy'
It's not clear in the docstring of getSeries method that you should use the launchpad name, "hardy".
Also, it'd be good if the exception raised was NotFound (OOPS-1171EB48) instead of NotFoundError, to keep consistency. |
As seen in OOPS-1171EC107, a user tried, using the API, to getSeries of Ubuntu distro trying to use the display name, "Hardy", and it oopsed.
>>> distro = lp.distributions['ubuntu']
>>> distro.getSeries(name_or_version='Hardy')
NotFoundError: u'Hardy'
It's not clear in the docstring of getSeries method that you should use the launchpad name, "hardy".
Also, it'd be good if the exception raised was NotFound (OOPS-1171EB48) instead of NotFoundError, to keep consistency. |
|