[ВОЛК] улучшение трассировки таймаута при постинге в телеграм
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-01-10 14:45:57 +03:00
parent d908c28b5d
commit bccf3e7717
2 changed files with 97 additions and 10 deletions
+6
View File
@@ -1049,6 +1049,12 @@ def api_publish_post(post_id):
if isinstance(result, Exception):
raise result
# Проверяем, что публикация действительно успешна (результат True)
if result is not True:
error_msg = f"Публикация поста ID: {post_id} не удалась (результат: {result})"
log_event(error_msg)
return jsonify({'success': False, 'error': error_msg}), 500
log_event(f"Публикация поста ID: {post_id} выполнена успешно")
return jsonify({'success': True})