From 82187df277ccdb3a01a25168136251c14aa2cdcf Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 8 Mar 2011 16:55:55 +0100 Subject: [PATCH] ubuntutools.distro_info: Fix TypeError crash (LP: #731398). --- debian/changelog | 3 ++- ubuntutools/distro_info.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 91e0334..585e2b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,9 @@ ubuntu-dev-tools (0.120) UNRELEASED; urgency=low [ Benjamin Drung ] * data/ubuntu.csv: Add Oneiric Ocelot to the list of know releases. + * ubuntutools.distro_info: Fix TypeError crash (LP: #731398). - -- Benjamin Drung Mon, 07 Mar 2011 11:18:01 +0100 + -- Benjamin Drung Tue, 08 Mar 2011 16:54:59 +0100 ubuntu-dev-tools (0.119) unstable; urgency=low diff --git a/ubuntutools/distro_info.py b/ubuntutools/distro_info.py index 1c8b52e..d170f8c 100644 --- a/ubuntutools/distro_info.py +++ b/ubuntutools/distro_info.py @@ -108,6 +108,8 @@ class DistroInfo(object): def unsupported(self, date=None): """Get list of all unsupported distributions based on the given date.""" + if date is None: + date = self._date supported = self.supported(date) distros = [x["series"] for x in self._avail(date) if x["series"] not in supported]