On Sun, Apr 12, 2009 at 07:29:16PM +0200, Julian Andres Klode wrote: > On Sun, Apr 12, 2009 at 05:13:43PM +0100, Enrico Zini wrote: > > # python-apt should not raise an exception at this point > > try: > > dummy = ver.raw_description > It has to raise an exception because you are trying to get a raw description > from a non-existing version.
Not true, I just overlooked that it already checked for ``pkg.candidate is None``. I have fixed the issue now and will upload the fixed version in a few minutes. The problem was that (in apt.Package.candidate) I did not check the return value of self._pcache._depcache.GetCandidateVer(self._pkg) and simply returned a Version object. Sorry! -- Julian Andres Klode - Free Software Developer Debian Developer - Contributing Member of SPI Ubuntu Member - Fellow of FSFE Website: http://jak-linux.org/ XMPP: juli...@jabber.org Debian: http://www.debian.org/ SPI: http://www.spi-inc.org/ Ubuntu: http://www.ubuntu.com/ FSFE: http://www.fsfe.org/
signature.asc
Description: Digital signature