Less indentation

merge-requests/30/head
Bob Mottram 2024-07-15 19:39:57 +01:00
parent 2bc8e8fc88
commit f3e0bdbc5f
1 changed files with 9 additions and 8 deletions

View File

@ -139,14 +139,15 @@ def _approve_follower_handle(account_dir: str, approve_handle: str) -> None:
except OSError: except OSError:
print('EX: _approve_follower_handle unable to append ' + print('EX: _approve_follower_handle unable to append ' +
approved_filename) approved_filename)
else: return
try:
with open(approved_filename, 'w+', try:
encoding='utf-8') as fp_approved: with open(approved_filename, 'w+',
fp_approved.write(approve_handle + '\n') encoding='utf-8') as fp_approved:
except OSError: fp_approved.write(approve_handle + '\n')
print('EX: _approve_follower_handle unable to write ' + except OSError:
approved_filename) print('EX: _approve_follower_handle unable to write ' +
approved_filename)
def manual_approve_follow_request(session, session_onion, session_i2p, def manual_approve_follow_request(session, session_onion, session_i2p,