Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
...@@ -701,6 +701,8 @@ class Error(DatabaseModel): ...@@ -701,6 +701,8 @@ class Error(DatabaseModel):
return self.protocol return self.protocol
def get_short_description(self): def get_short_description(self):
if not self.description:
return ""
lines = self.description.splitlines() lines = self.description.splitlines()
if len(lines) <= 4: if len(lines) <= 4:
return "\n".join(lines) return "\n".join(lines)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment