summaryrefslogtreecommitdiff
path: root/uio.py
diff options
context:
space:
mode:
authorSérgio Almeida <mephx.x@gmail.com>2009-07-31 18:15:48 +0100
committerSérgio Almeida <mephx.x@gmail.com>2009-07-31 18:28:29 +0100
commitd62f5e09dc2c935e7feefc3cb9b9a1b981929b92 (patch)
tree3810e3890c05f584fd78eb2172be1a512047edea /uio.py
parentFixed re-printbug (diff)
downloaduselect-d62f5e09dc2c935e7feefc3cb9b9a1b981929b92.tar.gz
uselect-d62f5e09dc2c935e7feefc3cb9b9a1b981929b92.tar.bz2
uselect-d62f5e09dc2c935e7feefc3cb9b9a1b981929b92.zip
uprofile now verifies '.uprofile/' folder existence
fixed crashes when no profiles are found
Diffstat (limited to 'uio.py')
-rw-r--r--uio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/uio.py b/uio.py
index f00b2ca..c54754f 100644
--- a/uio.py
+++ b/uio.py
@@ -337,6 +337,8 @@ class ProfilePrintSystem(PrintSystem):
def print_profiles(self, profiles):
self.print_line(highlight + space + 'Profiles:' + reset)
table = []
+ if len(profiles) == 0:
+ table.append([bold + 'No Profiles Found!' , ''])
for profile in profiles:
table.append([bold + profile.name, bullet + space + profile.description])
self.print_table(table)