mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
html response logging
This commit is contained in:
parent
cbd68f8fd8
commit
0c493549e3
1 changed files with 3 additions and 2 deletions
|
@ -108,6 +108,7 @@ def post_request(uri: str, body: dict | None, private_key: str, key_id: str, con
|
|||
if 'DOCTYPE html' in result.text:
|
||||
log.result = 'ignored'
|
||||
log.exception_message = f'{result.status_code}: HTML instead of JSON response - '
|
||||
log.activity_json += result.text
|
||||
elif 'community_has_no_followers' in result.text:
|
||||
fix_local_community_membership(uri, private_key)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue