From 1e2137cd9013a01b7a20708c7f4907c300ff4e56 Mon Sep 17 00:00:00 2001 From: redxef Date: Thu, 15 Jun 2023 03:07:18 +0200 Subject: [PATCH] Include api response text in exception body. --- adapters/wordpress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/wordpress.py b/adapters/wordpress.py index b9c2582..8278d82 100644 --- a/adapters/wordpress.py +++ b/adapters/wordpress.py @@ -165,6 +165,6 @@ class Wordpress(Sink, Adapter): ) r = 'wpbs_message=calendar_update_success' in update_request.text if not r: - raise Exception('failed to post events') + raise Exception(f'failed to post events, got answer {update_request.text}')