Check that post was located

main
Bob Mottram 2024-10-27 10:29:14 +00:00
parent 30a3de6b02
commit 0b52bdfc5f
1 changed files with 16 additions and 15 deletions

View File

@ -1327,6 +1327,7 @@ def mute_post(base_dir: str, nickname: str, domain: str, port: int,
if also_update_post_id:
post_filename = locate_post(base_dir, nickname, domain,
also_update_post_id)
if post_filename:
if os.path.isfile(post_filename):
post_json_obj = load_json(post_filename)
cached_post_filename = \