diff options
author | 2009-07-31 18:15:48 +0100 | |
---|---|---|
committer | 2009-07-31 18:28:29 +0100 | |
commit | d62f5e09dc2c935e7feefc3cb9b9a1b981929b92 (patch) | |
tree | 3810e3890c05f584fd78eb2172be1a512047edea /uio.py | |
parent | Fixed re-printbug (diff) | |
download | uselect-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |