Less indentation

main
Bob Mottram 2024-07-15 20:48:44 +01:00
parent 4dafad931f
commit 3814caeb11
1 changed files with 8 additions and 7 deletions

View File

@ -62,13 +62,14 @@ def _update_feeds_outbox_index(base_dir: str, domain: str,
except OSError as ex:
print('EX: Failed to write entry to feeds posts index ' +
index_filename + ' ' + str(ex))
else:
try:
with open(index_filename, 'w+', encoding='utf-8') as fp_feeds:
fp_feeds.write(post_id + '\n')
except OSError:
print('EX: _update_feeds_outbox_index unable to write ' +
index_filename)
return
try:
with open(index_filename, 'w+', encoding='utf-8') as fp_feeds:
fp_feeds.write(post_id + '\n')
except OSError:
print('EX: _update_feeds_outbox_index unable to write ' +
index_filename)
def _save_arrived_time(post_filename: str, arrived: str) -> None: