Commit e4051d62 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not show an error description if it does not exist

parent f1aa0abb
......@@ -701,6 +701,8 @@ class Error(DatabaseModel):
return self.protocol
def get_short_description(self):
if not self.description:
return ""
lines = self.description.splitlines()
if len(lines) <= 4:
return "\n".join(lines)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment