From 0b758423a450f61b3c47d645697cfe814d40eb89 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 8 Aug 2024 07:35:15 -0700 Subject: [PATCH] featherwiki: Fix a type check failure Due to a reassignment to a different type. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/featherwiki/privileged.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/featherwiki/privileged.py b/plinth/modules/featherwiki/privileged.py index d5066d17c..f29373049 100644 --- a/plinth/modules/featherwiki/privileged.py +++ b/plinth/modules/featherwiki/privileged.py @@ -52,9 +52,9 @@ def create_wiki(file_name: str): @privileged -def add_wiki_file(upload_file_path: str): +def add_wiki_file(upload_file: str): """Add an uploaded wiki file.""" - upload_file_path = pathlib.Path(upload_file_path) + upload_file_path = pathlib.Path(upload_file) temp_dir = tempfile.gettempdir() if not upload_file_path.is_relative_to(temp_dir): raise Exception('Uploaded file is not in expected temp directory.')