Skip to content

Commit 8727cda

Browse files
committed
Fix call to allauth adapter
This apparently changed at some point. This was triggered when no accounts were connected and a project import was attempted. Webhook setup would try to emit a warning message for the provider.
1 parent 91a72f5 commit 8727cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/oauth/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def attach_webhook(project, request=None):
5555
request,
5656
_('No accounts available to set webhook on. '
5757
'Please connect your {network} account.'.format(
58-
network=service.adapter().get_provider().name
58+
network=service.adapter(request).get_provider().name
5959
))
6060
)
6161
return False

0 commit comments

Comments
 (0)