Skip to content

Commit

Permalink
Merge pull request HelloZeroNet#2716 from imachug/uifile-404-fix
Browse files Browse the repository at this point in the history
Fix 404 error handler in UiFilePlugin
  • Loading branch information
HelloZeroNet authored Jan 25, 2021
2 parents 03da34c + c3f4591 commit 454c0b2
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 454c0b2

Please sign in to comment.