Skip to content

Avoid running app.exec() inside except block #81

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

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

VegarS
Copy link
Contributor

@VegarS VegarS commented Jun 15, 2023

Use hasattr() to determine how to run the app instead of a try/except-clause. Without this change, exceptions inside the app always begin with a confusing error from the try-block in qasync:
image

Use hasattr() instead of try/except-block.
@hosaka
Copy link
Collaborator

hosaka commented Jun 15, 2023

Hi @VegarS, thank you for submitting a PR! Looks like a reasonable improvement, I'll merge it.

@hosaka hosaka merged commit 28c6599 into CabbageDevelopment:master Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants