diff --git a/follow.py b/follow.py index e229502f8..9fa0b70f3 100644 --- a/follow.py +++ b/follow.py @@ -738,21 +738,19 @@ def followed_account_accepts(session, base_dir: str, http_prefix: str, accept_handle = nickname + '@' + domain # send accept back - if debug: - print('DEBUG: sending Accept activity for ' + - 'follow request which arrived at ' + - nickname_to_follow + '@' + domain_to_follow + - ' back to ' + accept_handle) + print('Sending follow Accept activity for ' + + 'follow request which arrived at ' + + nickname_to_follow + '@' + domain_to_follow + + ' back to ' + accept_handle) accept_json = create_accept(base_dir, federation_list, nickname_to_follow, domain_to_follow, port, person_url, '', http_prefix, follow_json) - if debug: - pprint(accept_json) - print('DEBUG: sending follow Accept from ' + - nickname_to_follow + '@' + domain_to_follow + - ' port ' + str(port) + ' to ' + - accept_handle + ' port ' + str(from_port)) + pprint(accept_json) + print('DEBUG: sending follow Accept from ' + + nickname_to_follow + '@' + domain_to_follow + + ' port ' + str(port) + ' to ' + + accept_handle + ' port ' + str(from_port)) client_to_server = False if removeFollowActivity: @@ -765,7 +763,8 @@ def followed_account_accepts(session, base_dir: str, http_prefix: str, try: os.remove(follow_activity_filename) except OSError: - print('EX: followed_account_accepts unable to delete ' + + print('EX: follow Accept ' + + 'followed_account_accepts unable to delete ' + follow_activity_filename) group_account = False