diff --git a/lib/core/dump.py b/lib/core/dump.py index d89db6623..dd486a754 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -148,7 +148,7 @@ class Dump: if isinstance(table, (list, tuple, set)): table = table[0] - maxlength = max(maxlength, len(table)) + maxlength = max(maxlength, len(str(table))) lines = "-" * (int(maxlength) + 2) @@ -168,7 +168,7 @@ class Dump: if isinstance(table, (list, tuple, set)): table = table[0] - blank = " " * (maxlength - len(table)) + blank = " " * (maxlength - len(str(table))) self.__write("| %s%s |" % (table, blank)) self.__write("+%s+\n" % lines)