Skip to content

Commit

Permalink
fix messages
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Feb 5, 2025
1 parent befcfb9 commit ada9607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authentik/events/system_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def set_status(self, status: TaskStatus, *messages: LogEvent):
def set_error(self, exception: Exception, *messages: LogEvent):
"""Set result to error and save exception"""
self._status = TaskStatus.ERROR
self._messages = list(messages).extend(
self._messages = list(messages)
self._messages.extend(

Check warning on line 60 in authentik/events/system_tasks.py

View check run for this annotation

Codecov / codecov/patch

authentik/events/system_tasks.py#L59-L60

Added lines #L59 - L60 were not covered by tests
[LogEvent(exception_to_string(exception), logger=self.__name__, log_level="error")]
)

Expand Down

0 comments on commit ada9607

Please sign in to comment.