We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1902d commit 9a30cc2Copy full SHA for 9a30cc2
src/textual/_import_app.py
@@ -112,10 +112,11 @@ def import_app(import_name: str) -> App:
112
except ImportError as error:
113
raise AppFail(str(error))
114
115
+ find_app = name or "app"
116
try:
- app = getattr(module, name or "app")
117
+ app = getattr(module, find_app or "app")
118
except AttributeError:
- raise AppFail(f"Unable to find {name!r} in {module!r}")
119
+ raise AppFail(f"Unable to find {find_app!r} in {module!r}")
120
121
sys.argv[:] = [import_name, *argv]
122
0 commit comments