From 8274a958bfc0b4e0efb17446504a606635b86a14 Mon Sep 17 00:00:00 2001 From: Kathurima Kimathi Date: Wed, 19 Jul 2023 14:23:19 +0300 Subject: [PATCH] chore: rename message variable Signed-off-by: Kathurima Kimathi --- mycarehub/content/wagtail_hooks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mycarehub/content/wagtail_hooks.py b/mycarehub/content/wagtail_hooks.py index 3c703d2..c15807a 100644 --- a/mycarehub/content/wagtail_hooks.py +++ b/mycarehub/content/wagtail_hooks.py @@ -42,18 +42,18 @@ def before_publish_page(request, page): if page.specific_class == ContentItem: if page.item_type == "AUDIO_VIDEO" and page.featured_media.count() == 0: - msg = ( + message = ( "an AUDIO_VIDEO content item must have at least one video " "or audio file before publication" ) - raise ValidationError(msg) + raise ValidationError(message) if page.item_type == "PDF_DOCUMENT" and page.documents.count() == 0: - msg = ( + message = ( "a PDF_DOCUMENT content item must have at least one document " "attached before publication" ) - raise ValidationError(msg) + raise ValidationError(message) @hooks.register("after_create_page")