summaryrefslogtreecommitdiffstats
path: root/users/tasks/follow.py
diff options
context:
space:
mode:
Diffstat (limited to 'users/tasks/follow.py')
-rw-r--r--users/tasks/follow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/users/tasks/follow.py b/users/tasks/follow.py
index 3260124..872b35f 100644
--- a/users/tasks/follow.py
+++ b/users/tasks/follow.py
@@ -24,5 +24,6 @@ async def handle_follow_request(task_handler):
response = await HttpSignature.signed_request(
follow.target.inbox_uri, request, follow.source
)
- print(response)
- print(response.content)
+ if response.status_code >= 400:
+ raise ValueError(f"Request error: {response.status_code} {response.content}")
+ await Follow.objects.filter(pk=follow.pk).aupdate(requested=True)