[distro-info] TypeError: can't compare datetime.date to NoneType

Bug #731398 reported by Dave Walker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

dave@voodoo:~/devel/ubuntu$ distro-info --unsupported
Traceback (most recent call last):
  File "/usr/bin/distro-info", line 89, in <module>
    main()
  File "/usr/bin/distro-info", line 85, in main
    for distro in UbuntuDistroInfo().unsupported(date):
  File "/usr/lib/python2.7/dist-packages/ubuntutools/distro_info.py", line 112, in unsupported
    distros = [x["series"] for x in self._avail(date)
  File "/usr/lib/python2.7/dist-packages/ubuntutools/distro_info.py", line 80, in _avail
    return [x for x in self._rows if date >= x["created"]]
TypeError: can't compare datetime.date to NoneType
dave@voodoo:~/devel/ubuntu$

ubuntu-dev-tools:
  Installed: 0.119
  Candidate: 0.119

Revision history for this message
Benjamin Drung (bdrung) wrote :

Fix committed in revision 1046.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.120

---------------
ubuntu-dev-tools (0.120) unstable; urgency=low

  [ Felix Geyer ]
  * pull-lp-source.1: Document -d option.

  [ Stefano Rivera ]
  * ubuntutools.archive: Filter rmadison results. (LP: #710579)
    - Canonicalise suites (use code-names) before passing them to rmadison.
  * pull-{lp,debian}-source: Download requested versions, as well as simply
    the latest version in a release.
  * pull-{lp,debian}-source, pull-debian-debdiff: Catch KeyboardInterrupt.
    (LP: #713845)
  * pull-debian-source: Handle -p-u and -security suites.
  * Bump X-Python-Version to >= 2.6, now that python-launchpadlib no longer
    supports Python 2.5.

  [ Julian Taylor ]
  * add support for cowbuilder and cowbuilder-dist in builder.py
    - allows use in sponsor-patch and backportpackage (LP: #728751)

  [ Benjamin Drung ]
  * data/ubuntu.csv: Add Oneiric Ocelot to the list of know releases.
  * ubuntutools.distro_info: Fix TypeError crash and add a test case to
    catch regressions (LP: #731398).
 -- Stefano Rivera <email address hidden> Sat, 12 Mar 2011 22:07:47 +0200

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.