diff --git a/pyproject.toml b/pyproject.toml index b5e23867..70eac9cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "royalnet" -version = "6.0.0a14" +version = "6.0.0a15" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0-or-later" diff --git a/royalnet/scrolls/__init__.py b/royalnet/scrolls/__init__.py index 0ef9e958..01491fc4 100644 --- a/royalnet/scrolls/__init__.py +++ b/royalnet/scrolls/__init__.py @@ -78,6 +78,8 @@ class Scroll: return cls.loaders[lext](namespace=namespace, file_path=file_path) except KeyError: raise InvalidFileType(f"Invalid extension: {lext}") + except FileNotFoundError: + return cls(namespace=namespace) @classmethod def _validate_key(cls, item: str):