From d1928738ea887b56cc8ebf42104c463a8d663783 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sun, 5 Jan 2020 20:03:07 +0100 Subject: [PATCH] Remove odd call to list() --- src/wiki/plugins/editsection/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wiki/plugins/editsection/views.py b/src/wiki/plugins/editsection/views.py index 1e16fbc1..fe39d2f0 100644 --- a/src/wiki/plugins/editsection/views.py +++ b/src/wiki/plugins/editsection/views.py @@ -148,7 +148,6 @@ class EditSection(EditView): location = self.locate_section(self.article, text) if location: if self.orig_section != text[location[0]:location[1]]: - list(messages.get_messages(self.request)) messages.warning( self.request, " ".format(ERROR_SECTION_CHANGED, ERROR_SECTION_UNSAVED, ERROR_TRY_AGAIN) @@ -160,7 +159,6 @@ class EditSection(EditView): # Back to the version before replacing the article with the section self.article.current_revision = self.article.current_revision.previous_revision self.article.save() - list(messages.get_messages(self.request)) messages.error( self.request, " ".format(ERROR_ARTICLE_CHANGED, ERROR_TRY_AGAIN) -- 2.45.2