From c3f4591f91025ea5b461f3e8042d47b40632e589 Mon Sep 17 00:00:00 2001 From: Ivanq Date: Sun, 27 Dec 2020 13:25:18 +0300 Subject: [PATCH] Fix 404 error handler in UiFilePlugin --- plugins/UiFileManager/UiFileManagerPlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/UiFileManager/UiFileManagerPlugin.py b/plugins/UiFileManager/UiFileManagerPlugin.py index 658173ae0..040e1d221 100644 --- a/plugins/UiFileManager/UiFileManagerPlugin.py +++ b/plugins/UiFileManager/UiFileManagerPlugin.py @@ -73,6 +73,9 @@ def error404(self, path=""): return super().error404(path) path_parts = self.parsePath(path) + if not path_parts: + return super().error404(path) + site = self.server.site_manager.get(path_parts["request_address"]) if not site or not site.content_manager.contents.get("content.json"):