Less indentation

merge-requests/30/head
Bob Mottram 2024-07-15 20:46:11 +01:00
parent 1bc643d34f
commit 4dafad931f
1 changed files with 56 additions and 51 deletions

View File

@ -1640,7 +1640,12 @@ def _add_account_blogs_to_newswire(base_dir: str, nickname: str, domain: str,
ctr = 0
while post_filename:
post_filename = fp_index.readline()
if post_filename:
if not post_filename:
ctr += 1
if ctr >= max_blogs_per_account:
break
continue
# if this is a full path then remove the directories
if '/' in post_filename:
post_filename = post_filename.split('/')[-1]