Shorter warning

main
Bob Mottram 2024-02-16 16:48:31 +00:00
parent a6eb5ae044
commit d1e2713cda
1 changed files with 6 additions and 2 deletions

View File

@ -2847,8 +2847,12 @@ def thread_send_post(session, post_json_str: str, federation_list: [],
if unauthorized:
_add_send_block(base_dir, nickname, domain, inbox_url)
print('WARN: thread_send_post: Post is unauthorized ' +
inbox_url + ' ' + post_json_str)
if debug:
print('WARN: thread_send_post: Post is unauthorized ' +
inbox_url + ' ' + post_json_str)
else:
print('WARN: thread_send_post: Post is unauthorized ' +
inbox_url)
break
if post_result:
log_str = 'Success on try ' + str(tries) + ': ' + post_json_str