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

Exception shows up without proper string formating and wrong permissions (?) #50

Open
jqdq opened this issue Aug 19, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jqdq
Copy link
Contributor

jqdq commented Aug 19, 2022

When the exception Configuration file {config} is not protected, make sure you're the only one allowed to read it ... is raised by line 43 in config/config.py, one instance of config is not replaced.
This is because the strings are concatenated after formating, rather than before. Adding a parenthesis should help, while preserving style guidelines.

Also: Shouldn't it be chmod 700? Using chmod 600 blocks Python from entering this directory and because of that I get PermissionError. This is supported by a Stack Overflow answer.

Disclaimer: I changed the config directory to a local one in config/config.py, so this might be less of an issue when using the standard one.

@jqdq jqdq added the bug Something isn't working label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant