diff --git a/block.py b/block.py index 1b016b4..f0fe5e4 100644 --- a/block.py +++ b/block.py @@ -99,5 +99,5 @@ def createFromBlockNumber(block_number: int, base_provider) -> Block: def _get_cache_path(block_number: int) -> Path: - cache_filepath = f"{cache_directory}/{block_number}-new.json" - return Path(cache_filepath) + cache_directory_path = Path(cache_directory) + return cache_directory_path / f"{block_number}-new.json"