From 6d40a4615bca601a68b90723efc36c2b04047d64 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 1 Aug 2024 22:12:16 +0300 Subject: [PATCH] fix(app): don't override App.app_name (#271) --- projects/fal/src/fal/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/fal/src/fal/app.py b/projects/fal/src/fal/app.py index 11555dfe..77d49190 100644 --- a/projects/fal/src/fal/app.py +++ b/projects/fal/src/fal/app.py @@ -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(