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 "invalid version" crash on startup #762

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

suve
Copy link
Contributor

@suve suve commented Mar 29, 2023

This commit fixes the program crashing because of an uncaught exception. The bug was triggered by app_settings.last_launched_version being unset - which would always be the case when launching the program for the first time.

The bug can also be triggered by manually changing the setting to an invalid value - e.g. by running:

$ gsettings set com.github.geigi.cozy last-launched-version 'ayy lmao'

Fixes issue #756.

This commit fixes the program crashing because of an uncaught exception.
The bug was triggered by app_settings.last_launched_version being
unset - which would always be the case when launching the program for
the first time!

The bug could also be triggered by manually changing the setting
to an invalid value - e.g. by running:
$ gsettings set com.github.geigi.cozy last-launched-version 'ayy lmao'
@rapenne-s
Copy link
Contributor

I encountered this bug after updating the OpenBSD package, I confirm it fixes #756

@suve suve force-pushed the fix-invalid-version-crash-at-startup branch 2 times, most recently from ffc0c30 to e42d2f6 Compare May 28, 2023 10:19
The "packaging" module has deprecated its LegacyVersion identifier back
in 2020, finally removing it in 2021. This causes cozy to crash when
running against new version of said module, with the following error:
> AttributeError: module 'packaging.version'
>                 has no attribute 'LegacyVersion'
@suve suve force-pushed the fix-invalid-version-crash-at-startup branch from e42d2f6 to 5dd970a Compare May 28, 2023 10:19
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.

4 participants