Less indentation

main
Bob Mottram 2025-05-31 15:37:11 +01:00
parent 897c633b37
commit 7d9556b8d4
1 changed files with 11 additions and 9 deletions

View File

@ -6115,14 +6115,16 @@ def populate_replies_json(base_dir: str, nickname: str, domain: str,
def _reject_announce(announce_filename: str, def _reject_announce(announce_filename: str,
base_dir: str, nickname: str, domain: str, base_dir: str, nickname: str, domain: str,
announce_post_id: str, recent_posts_cache: {}, announce_post_id: str, recent_posts_cache: {},
debug: bool): debug: bool) -> None:
"""Marks an announce as rejected """Marks an announce as rejected
""" """
reject_post_id(base_dir, nickname, domain, announce_post_id, reject_post_id(base_dir, nickname, domain, announce_post_id,
recent_posts_cache, debug) recent_posts_cache, debug)
# reject the post referenced by the announce activity object # reject the post referenced by the announce activity object
if not os.path.isfile(announce_filename + '.reject'): if os.path.isfile(announce_filename + '.reject'):
return
try: try:
with open(announce_filename + '.reject', 'w+', with open(announce_filename + '.reject', 'w+',
encoding='utf-8') as fp_reject_announce: encoding='utf-8') as fp_reject_announce: