Skip to content

Commit

Permalink
Fix 404 error handler in UiFilePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Dec 27, 2020
1 parent b4f4c12 commit c3f4591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/UiFileManager/UiFileManagerPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit c3f4591

Please sign in to comment.