We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8982a3 commit f029e67Copy full SHA for f029e67
tldr.py
@@ -28,7 +28,7 @@
28
).rstrip('/')
29
DOWNLOAD_CACHE_LOCATION = os.environ.get(
30
'TLDR_DOWNLOAD_CACHE_LOCATION',
31
- 'https://tldr-pages.github.io/assets/tldr.zip'
+ 'https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip'
32
)
33
34
USE_NETWORK = int(os.environ.get('TLDR_NETWORK_ENABLED', '1')) > 0
@@ -115,7 +115,7 @@ def store_page_to_cache(
115
) -> Optional[str]:
116
try:
117
cache_file_path = get_cache_file_path(command, platform, language)
118
- cache_file_path.parent.mkdir(exist_ok=True)
+ cache_file_path.parent.mkdir(parents=True, exist_ok=True)
119
with cache_file_path.open("wb") as cache_file:
120
cache_file.write(page)
121
except Exception:
0 commit comments