Check for none

merge-requests/30/head
Bob Mottram 2023-02-09 12:26:51 +00:00
parent aae64e154b
commit 43a411581c
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,8 @@ def _save_individual_post_as_html_to_cache(base_dir: str,
get_cached_post_directory(base_dir, nickname, domain)
cached_post_filename = \
get_cached_post_filename(base_dir, nickname, domain, post_json_object)
if not cached_post_filename:
return False
# create the cache directory if needed
if not os.path.isdir(html_post_cache_dir):