Less indentation

merge-requests/30/head
Bob Mottram 2022-11-27 18:28:42 +00:00
parent f41d52630b
commit acabbc9220
1 changed files with 30 additions and 29 deletions

View File

@ -129,6 +129,7 @@ def _update_moved_handle(base_dir: str, nickname: str, domain: str,
following_filename = \ following_filename = \
acct_dir(base_dir, nickname, domain) + '/following.txt' acct_dir(base_dir, nickname, domain) + '/following.txt'
if os.path.isfile(following_filename): if os.path.isfile(following_filename):
following_handles = []
with open(following_filename, 'r', encoding='utf-8') as foll1: with open(following_filename, 'r', encoding='utf-8') as foll1:
following_handles = foll1.readlines() following_handles = foll1.readlines()