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 FileNotFoundError in running_in_docker (#1201) #1203

Closed
wants to merge 1 commit into from

Conversation

monkut
Copy link
Collaborator

@monkut monkut commented Dec 1, 2022

running_in_docker() check introduced in 0.56.0, and assumes that /proc/1/cgroup is always on the system (linux system assumed), this PR updates to check for the expected file existence before attempting to read it's content.

Fixes:

@monkut monkut changed the title 🐛 fix FileNotFoundError in running_in_docker (#1201) fix FileNotFoundError in running_in_docker (#1201) Dec 1, 2022
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 74.575% when pulling ad71767 on fix/issue-1201 into ea55be9 on master.

@monkut
Copy link
Collaborator Author

monkut commented Dec 2, 2022

Closing this in place of cleaner approach defined in this PR:
#1204

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