From d1e2713cdae8c23a4e55eea27d336f5d9b4a85cd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 16 Feb 2024 16:48:31 +0000 Subject: [PATCH] Shorter warning --- posts.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 5a45110c6..1885fe2e2 100644 --- a/posts.py +++ b/posts.py @@ -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