From 087fc12908c817c1b33820f5e5d38b6b78293c75 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Sun, 23 Dec 2007 19:56:20 -0500 Subject: [PATCH] Conditionally shows terms --- ceo/urwid/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceo/urwid/info.py b/ceo/urwid/info.py index 7203371..5f6cb7d 100644 --- a/ceo/urwid/info.py +++ b/ceo/urwid/info.py @@ -35,8 +35,8 @@ class InfoPage(WizardPanel): self.userid.set_text("User: %s" % userid) self.program.set_text("Program: %s" % program) self.program.set_text("Shell: %s" % shell) - self.terms.set_text("Terms: %s" % ", ".join(terms)) - + if terms: + self.terms.set_text("Terms: %s" % ", ".join(terms)) if nmterms: self.nmterms.set_text("Rep Terms: %s" % ", ".join(nmterms)) def check(self):