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

Update text_ui.py #1673

Merged
merged 2 commits into from
Dec 9, 2022
Merged

Update text_ui.py #1673

merged 2 commits into from
Dec 9, 2022

Conversation

atummons
Copy link
Contributor

@atummons atummons commented Dec 9, 2022

Reverts back to where it used to be. This change throws an error (maybe an issue upstream) where various events players will error out. This makes Text_UI have the issue from before where it won't update player variables unless score, ball, or player changes. But better than breaking. At some point I will dig into a real fix to make Text_UI match what is expected for all scenarios.

Reverts back to where it used to be.  This change throws an error (maybe an issue upstream) where various events players will error out.  This makes Text_UI have the issue from before where it won't update player variables unless score, ball, or player changes.  But better than breaking.  At some point I will dig into a real fix to make Text_UI match what is expected for all scenarios.
@jabdoa2
Copy link
Collaborator

jabdoa2 commented Dec 9, 2022

I guess a try catch inside the handler would work around all those issues with non trivial types.

Per Jan comment, adds try and excepts ValueError (only error I could hit).  I just have it passing for now.  Could add specific messages to debug log, but its not really an issue, just based on how it is all designed from my view.
@atummons
Copy link
Contributor Author

atummons commented Dec 9, 2022

I guess a try catch inside the handler would work around all those issues with non trivial types.

Good idea. Put it in, and is working for my local tests.

@sonarcloud
Copy link

sonarcloud bot commented Dec 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Dec 9, 2022

Awesome. Thanks :-)

@jabdoa2 jabdoa2 merged commit 7e54535 into missionpinball:dev Dec 9, 2022
@atummons atummons deleted the Fix-Text-UI branch August 31, 2023 17:10
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