Skip to content

Commit

Permalink
fix: add fallback for public hosts (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristhian Garcia authored Jun 20, 2024
1 parent e3618b8 commit 7bbebb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@
)


@hooks.Filters.APP_PUBLIC_HOSTS.add()
def _aspects_public_hosts(
hosts: list[str], context_name: t.Literal["local", "dev"]
) -> list[str]:
Expand All @@ -453,6 +452,12 @@ def _aspects_public_hosts(
return hosts


try:
hooks.Filters.APP_PUBLIC_HOSTS.add(_aspects_public_hosts)
except AttributeError:
pass


########################################
# INITIALIZATION TASKS
########################################
Expand Down

0 comments on commit 7bbebb1

Please sign in to comment.