Less indentation

main
Bob Mottram 2025-05-31 12:10:28 +01:00
parent f0db978b8f
commit 1158e6b65c
1 changed files with 17 additions and 16 deletions

View File

@ -1810,7 +1810,8 @@ def remove_post_from_index(post_url: str, debug: bool,
print('EX: remove_post_from_index unable to read ' +
index_file + ' ' + str(exc))
if lines:
if not lines:
return
try:
with open(index_file, 'w+',
encoding='utf-8') as fp_mod2:
@ -2433,7 +2434,7 @@ def no_of_active_accounts_monthly(base_dir: str, months: int) -> bool:
return account_ctr
def copytree(src: str, dst: str, symlinks: str, ignore: bool):
def copytree(src: str, dst: str, symlinks: str, ignore: bool) -> None:
"""Copy a directory
"""
for item in os.listdir(src):