Skip to content

Commit

Permalink
Merge pull request #257 from phenobarbital/dev
Browse files Browse the repository at this point in the history
simply fix when not path is provided to ModelView
  • Loading branch information
phenobarbital authored Jun 2, 2024
2 parents 363d9db + cfa65ec commit f2d20b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion navigator/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__description__ = (
"Navigator Web Framework based on aiohttp, " "with batteries included."
)
__version__ = "2.8.47"
__version__ = "2.8.48"
__author__ = "Jesus Lara"
__author_email__ = "jesuslarag@gmail.com"
__license__ = "BSD"
5 changes: 4 additions & 1 deletion navigator/views/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ def configure(cls, app: WebApp, path: str = None) -> WebApp:
if callable(cls.on_shutdown):
app.on_shutdown.append(cls.on_shutdown)
### added routers:
model_path = cls.path
try:
model_path = cls.path
except AttributeError:
model_path = None
if not model_path:
model_path = path
if not model_path:
Expand Down

0 comments on commit f2d20b3

Please sign in to comment.