diff options
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-x | mesonconf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonconf.py b/mesonconf.py index 8f7e43a..9f8a15c 100755 --- a/mesonconf.py +++ b/mesonconf.py @@ -49,6 +49,8 @@ class Conf: pickle.dump(self.coredata, open(self.coredata_file, 'wb')) def print_aligned(self, arr): + if len(arr) == 0: + return longest_name = max((len(x[0]) for x in arr)) longest_descr = max((len(x[1]) for x in arr)) for i in arr: |