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

fix(BaseClient): prevent raising an error if None is passed to the log_dir #148

Merged
merged 10 commits into from
Feb 21, 2024

Conversation

SlowMo24
Copy link
Collaborator

No description provided.

@SlowMo24 SlowMo24 self-assigned this Feb 19, 2024
@SlowMo24 SlowMo24 changed the base branch from master to relax_urllib_dependency February 19, 2024 19:19
Copy link
Collaborator

@maciej-adamiak maciej-adamiak left a comment

Choose a reason for hiding this comment

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

The code is fine and fulfills the requirements of the proposed change. On the other hand, I wonder why you decided not to assert the correctness of the declared log directory by requiring it to be an optional Path instead of the optional string.

@SlowMo24
Copy link
Collaborator Author

The code is fine and fulfills the requirements of the proposed change. On the other hand, I wonder why you decided not to assert the correctness of the declared log directory by requiring it to be an optional Path instead of the optional string.

@maciej-adamiak the current approach is that we will forcefully create the path if it does not exist:

if self.log:
self.log_dir.mkdir(parents=True, exist_ok=True)

Base automatically changed from relax_urllib_dependency to master February 21, 2024 10:52
@SlowMo24 SlowMo24 merged commit 3a0d237 into master Feb 21, 2024
4 checks passed
@SlowMo24 SlowMo24 deleted the fix_logdir_init branch February 21, 2024 10:56
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.

2 participants