Skip to content

Commit

Permalink
fix(app): don't override App.app_name (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Aug 1, 2024
1 parent 43f6039 commit 6d40a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/fal/src/fal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init_subclass__(cls, **kwargs):
app_name = kwargs.pop("name", None) or _to_fal_app_name(cls.__name__)
parent_settings = getattr(cls, "host_kwargs", {})
cls.host_kwargs = {**parent_settings, **kwargs}
cls.app_name = app_name
cls.app_name = getattr(cls, "app_name", app_name)

if cls.__init__ is not App.__init__:
raise ValueError(
Expand Down

0 comments on commit 6d40a46

Please sign in to comment.