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

fix(linux): Fix crash initializing Sentry with Python < 3.10 #9774

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

ermshiperete
Copy link
Contributor

Ubuntu 20.04 comes with Python 3.8 which doesn't have platform.freedesktop_os_release(). This change catches the exception if this happens, as well as other exceptions we might get so that the initialization of Sentry will succeed.

Fixes #9773.

User Testing

Preparations

Tests

TEST_CAN_START: Open a terminal window and run km-config. Verify that Keyman Configuration starts.

Ubuntu 20.04 comes with Python 3.8 which doesn't have
`platform.freedesktop_os_release()`. This change catches the exception
if this happens, as well as other exceptions we might get so that the
initialization of Sentry will succeed.

Fixes #9773.
@keymanapp-test-bot keymanapp-test-bot bot added has-user-test user-test-required User tests have not been completed labels Oct 16, 2023
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 16, 2023

User Test Results

Test specification and instructions

  • TEST_CAN_START (PASSED): Tested with the attached PR build (Keyman 17.0.192-alpha-local (package version 17.0.192-1~PR-9774-1521.1+focal1) in Wasta 20.04 Linux OS (VM) and here is my observation: 1. Verified that executing the "km-config" command in the terminal window will trigger the Keyman Configuration dialog to appear. Thanks. (notes)

Test Artifacts

@bharanidharanj
Copy link

Test Results

  • TEST_CAN_START (PASSED): Tested with the attached PR build (Keyman 17.0.192-alpha-local (package version 17.0.192-1~PR-9774-1521.1+focal1) in Wasta 20.04 Linux OS (VM) and here is my observation: 1. Verified that executing the "km-config" command in the terminal window will trigger the Keyman Configuration dialog to appear. Thanks.

@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-required User tests have not been completed label Oct 17, 2023
@ermshiperete ermshiperete merged commit f178959 into master Oct 17, 2023
3 checks passed
@ermshiperete ermshiperete deleted the fix/linux/9773_python3.8 branch October 17, 2023 16:02
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 17.0.193-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants