Skip to content
Snippets Groups Projects
Commit 8b3c4512 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not use that modern python syntax

/close #141
parent 68ec9f0b
No related branches found
No related tags found
No related merge requests found
......@@ -679,7 +679,7 @@ class Error(DatabaseModel):
lines = self.description.splitlines()
if len(lines) <= 4:
return "\n".join(lines)
return "\n".join([*lines[:2], "", *lines[-2:]])
return "\n".join(["\n".join(lines[:2]), "", "\n".join(lines[-2:])])
class TodoMail(DatabaseModel):
__tablename__ = "todomails"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment