diff --git a/modoboa/lib/tables.py b/modoboa/lib/tables.py index 5d696c990..cd45d4fdd 100644 --- a/modoboa/lib/tables.py +++ b/modoboa/lib/tables.py @@ -42,8 +42,11 @@ class Column(object): col["value"] = row[self.name] try: limit = getattr(self, "limit") - if len(col["value"]) > limit: - col["value"] = col["value"][0:limit] + "..." + if limit: + # The value is not necessarily a string, so... + col["value"] = str(col["value"]) + if len(col["value"]) > limit: + col["value"] = col["value"][0:limit] + "..." except AttributeError: pass try: