Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try/except on all app #4278

Closed
mattthhh opened this issue Mar 11, 2024 · 0 comments
Closed

Try/except on all app #4278

mattthhh opened this issue Mar 11, 2024 · 0 comments

Comments

@mattthhh
Copy link

Hi there! I wanted to know if there is a solution to catch all exceptions from the whole app running, I tried this code following :

if __name__ == "__main__":
    try:
        app = App()
        ret = app.run()
    except Exception as err:
        print("sad")

but it didn't work... I got the exception with rich printing but it's not handled by my try/except in my main. Any ideas ?

@Textualize Textualize deleted a comment from github-actions bot Mar 11, 2024
@Textualize Textualize locked and limited conversation to collaborators Mar 11, 2024
@davep davep converted this issue into discussion #4279 Mar 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant