Skip to content

Report missing file in config chain #7427

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

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

smotornyuk
Copy link
Member

We are not checking whether the config file from use = config:path/to/config.ini actually exists. Instead, we are relying on ConfigParser.read. Apparently, this method just silently skips missing files, which may put us into an infinite loop when the config chain is unwrapped.

Solution:
check every file from the config chain with os.path.exists

@tino097 tino097 merged commit ca9f917 into master Mar 13, 2023
@tino097 tino097 deleted the report-missing-file-in-config-chain branch March 13, 2023 13:50
@tino097
Copy link
Member

tino097 commented Mar 13, 2023

Thanks @smotornyuk !

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

Successfully merging this pull request may close these issues.

2 participants