Skip to content
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

Allow opening the Bugtracker from Unhandled exception Window #8161

Open
JakobDev opened this issue Dec 12, 2023 · 2 comments
Open

Allow opening the Bugtracker from Unhandled exception Window #8161

JakobDev opened this issue Dec 12, 2023 · 2 comments
Labels
feature Feature request triage Please triage and relabel this issue

Comments

@JakobDev
Copy link

Is your feature request related to a problem? Please describe.
When a Python script in windowed mode has a unhandled exception, a Window with that exception will open.
grafik
This is a great feature to show this Windows instead of silencing crashing. But there's one problem: The User don't maybe don't know how to report the crash.

Describe the solution you'd like
Add a new argument to PyInstaller e.g. windowed-traceback-bug-url. If this is set, a new Button called Report Bug will appear on the left side of the Window. If the User clicks this, the Browser will open the given URL, so the User can report the crash in the Bugtracker.

Describe alternatives you've considered
None

Additional context
None

@JakobDev JakobDev added feature Feature request triage Please triage and relabel this issue labels Dec 12, 2023
@bwoodsend
Copy link
Member

bwoodsend commented Dec 12, 2023

That unhandled exception window is more just a placeholder for your own exception handling. For a production application, we'd rather that you do it yourself. Something along the lines of:

try:
    # your main code here
except:
    import traceback
    error = traceback.format_exc()
    # Display this error message in a popup dialog with whatever formatting,
    # hyperlinks or additional suggestions you like

@JakobDev
Copy link
Author

There might be a case where you can't do that e.g. problems with importing the GUI Framework, so allow adding a Link to the exception Window would be much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request triage Please triage and relabel this issue
Projects
None yet
Development

No branches or pull requests

2 participants