Replies: 1 comment
-
Same result in bash. I wonder if because Textual is async, or something else...? from textual.app import App, ComposeResult
from textual.widgets import Static
class ExampleApp(App):
def compose(self) -> ComposeResult:
yield Static("Hello, world!")
def on_ready(self) -> None:
assert 1 == 2
if __name__ == "__main__":
# Comment out the assert below and `$?` returns an exit code of 0
assert 1 == 2
app = ExampleApp()
app.run() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get the following error, but the exit code is always "True" at least in Powershell:
How to make it return the correct exit code for an app crash, like "False"?
Beta Was this translation helpful? Give feedback.
All reactions