Include api response text in exception body.

This commit is contained in:
redxef 2023-06-15 03:07:18 +02:00
parent 04a1e36a00
commit 1e2137cd90
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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}')