Skip to content

Conversation

@cdent
Copy link
Collaborator

@cdent cdent commented Aug 26, 2023

If no arg is provided, a default_time_format is used.

Fixes #73

If no arg is provided, a default_time_format is used.

Fixes #73
setup_console_handler=True,
set_logger_level=logging.DEBUG):
set_logger_level=logging.DEBUG,
time_format=None):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not assign the default right here?

Suggested change
time_format=None):
time_format=default_time_format):

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically just to keep the same pattern used for format in line 28/34.

Which is perhaps not sufficient reason technically, but I tend to want to stick with existing patterns, especially in paste where everything is so weird and old and sometimes confusing.

Thus minimal changes.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thank you.

@cdent cdent merged commit 8eea6ac into master Oct 2, 2023
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.

UnicodeDecodeError on German Date with Umlaut (ex. März)

3 participants