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

BizHawkClient: Fix error logging in python 3.8 #2930

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

Zunawe
Copy link
Collaborator

@Zunawe Zunawe commented Mar 11, 2024

What is this fixing or adding?

The current method for displaying uncaught exceptions to the user is overly complex and not compatible with Python 3.8. This just switches it to what it probably should have been in the first place.

How was this tested?

Raised an error in _game_watcher using Python 3.8. On the current version, you'll eventually see

TypeError: format_exception() missing 2 required positional arguments: 'value' and 'tb'

With the changes, you still show the actual exception to the user, but don't get the extra exceptions like the one above.

Also did a sanity test in 3.11.2, new code showed the expected result.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Mar 11, 2024
@Berserker66 Berserker66 merged commit 6badc75 into ArchipelagoMW:main Mar 11, 2024
15 checks passed
EmilyV99 pushed a commit to EmilyV99/Archipelago that referenced this pull request Apr 15, 2024
EmilyV99 pushed a commit to EmilyV99/Archipelago that referenced this pull request Apr 15, 2024
@Zunawe Zunawe deleted the bhc-err-log branch May 23, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants