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

Traceback when log_file without name #175

Closed
patrikspiess opened this issue Nov 29, 2023 · 1 comment · Fixed by #213
Closed

Traceback when log_file without name #175

patrikspiess opened this issue Nov 29, 2023 · 1 comment · Fixed by #213

Comments

@patrikspiess
Copy link
Member

In the fotoobo config you may specify to log to a file:

log_file:
    name: fotoobo.log

If you omit the name: ... a traceback is created:

File "/home/pspiess/projects/fotoobo/fotoobo/helpers/log.py", line 199, in configure_logging
  filename=config.logging["log_file"]["name"],
TypeError: 'NoneType' object is not subscriptable

Instead a warning should occur.

@patrikspiess
Copy link
Member Author

Or configure fotoobo.log in the current working directory as a default. In this way it would still work without warning.

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 a pull request may close this issue.

1 participant