Skip to content

Commit

Permalink
fix(frbvoe/server.py): Fixed Fallback error
Browse files Browse the repository at this point in the history
  • Loading branch information
tabbott36 committed May 10, 2024
1 parent b7c42d0 commit 3bdeafe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frbvoe/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def create(name: str = "frbvoe", debug: bool = False) -> Sanic:
app.config.HEALTH = True
app.config.HEALTH_ENDPOINT = True
app.ctx.debug = debug
app.config.FALL
# BACK_ERROR_FORMAT = "json"
app.config.FALLBACK_ERROR_FORMAT = "json"
# ? Blueprints
app.blueprint(voe_blueprint)
# ? Listeners
Expand All @@ -84,7 +83,7 @@ def create(name: str = "frbvoe", debug: bool = False) -> Sanic:
loader = AppLoader(factory=partial(create))
server: Sanic = loader.load()
server.prepare(
host=server.config.get("HOSTNAME", "localhost"), # type: ignore
host=server.config.get("HOSTNAME", "0.0.0.0"), # type: ignore
port=server.config.get("PORT", 8002), # type: ignore
access_log=server.config.get("ACCESS_LOG", False),
auto_reload=server.config.get("AUTO_RELOAD", True),
Expand Down

0 comments on commit 3bdeafe

Please sign in to comment.