Include api response text in exception body.
This commit is contained in:
parent
04a1e36a00
commit
1e2137cd90
1 changed files with 1 additions and 1 deletions
|
@ -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}')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue