Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
os.makedirs
calls for optional Path variables
Previously, `os.makedirs` was called directly on variables like `MESSAGE_CACHE` or `CODE_CACHE`, which could be `None`. This caused issues with `mypy` and potential runtime errors since `os.makedirs` does not handle `None`. The fix ensures these variables are checked for `None` before calling `os.makedirs`, preventing invalid operations and aligning with type checks. fix: wrong name
- Loading branch information