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

Steamutil: Do not raise error in get_steam_vdf_compat_tool_mapping #478

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

DavidoTek
Copy link
Owner

@DavidoTek DavidoTek commented Jan 6, 2025

Print the error message and return {} instead of raising a KeyError in get_steam_vdf_compat_tool_mapping.

If the Value/value key does not exist for some reason, ProtonUp-Qt will crash on start.
Returning {} prevents the crash and the functions calling get_steam_vdf_compat_tool_mapping should handle that case (although they might not work as expected).

(Update to get_steam_vdf_compat_tool_mapping which was introduced in #227)


Also, indicate which function prints the error message if the text is the same otherwise.

@DavidoTek DavidoTek merged commit 98b1136 into main Jan 6, 2025
1 check passed
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.

1 participant