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

Nagstamon.Helpers.get_distro: ignore lines missing an equal sign #971

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Nagstamon.Helpers.get_distro: ignore lines missing an equal sign #971

merged 1 commit into from
Oct 10, 2023

Conversation

ahesford
Copy link
Contributor

When /etc/os-release is missing an equal sign (for example, when a line is empty), get_distro will throw a ValueError. Instead, we can just ignore this line as invalid and continue parsing.

@HenriWahl HenriWahl merged commit e4397b5 into HenriWahl:master Oct 10, 2023
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.

None yet

2 participants