From 8727cda695dd667e7f0c1fd94664ca18dd09bc1a Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Mon, 10 Jul 2017 12:16:52 -0700 Subject: [PATCH] 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. --- readthedocs/oauth/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/oauth/utils.py b/readthedocs/oauth/utils.py index d585741c88d..e3a75ed7c65 100644 --- a/readthedocs/oauth/utils.py +++ b/readthedocs/oauth/utils.py @@ -55,7 +55,7 @@ def attach_webhook(project, request=None): request, _('No accounts available to set webhook on. ' 'Please connect your {network} account.'.format( - network=service.adapter().get_provider().name + network=service.adapter(request).get_provider().name )) ) return False