(cherry picked from commit 53c41e0ce6bf9985786a570c43fd32c79332c44c) Co-authored-by: Jaime <developmentforpeople@gmail.com>
This commit is contained in:
parent
d978450a15
commit
3a130abfc5
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class StaticPage(BaseRenderer):
|
|||
return self.is_valid_file_path() and self.file_path
|
||||
|
||||
def is_valid_file_path(self):
|
||||
extension = self.path.rsplit(".", 1)[-1]
|
||||
extension = self.path.rsplit(".", 1)[-1] if "." in self.path else ""
|
||||
if extension in UNSUPPORTED_STATIC_PAGE_TYPES:
|
||||
return False
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue