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

Missing configuration file may break CLI #38

Open
FrankNagel opened this issue Mar 6, 2021 · 1 comment
Open

Missing configuration file may break CLI #38

FrankNagel opened this issue Mar 6, 2021 · 1 comment

Comments

@FrankNagel
Copy link
Contributor

FrankNagel commented Mar 6, 2021

Cohen3.base.log_level breaks here if you use the CLI interface in non daemon mode and without a configuration file (or without a proper logging section). You will get an builtins.AttributeError: 'Section' object has no attribute 'upper' exception.

The reason for this behavior is, that you unconditionally add a loggging section in cli.py but only in daemon mode do you add a level attribute a few lines later.

@paulftw
Copy link

paulftw commented Mar 8, 2024

As a new user I actually ran into this error message.
master branch as of March 2023, Python 3.11.3

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

No branches or pull requests

2 participants