diff --git a/plugins/oauth/server/providers/base.py b/plugins/oauth/server/providers/base.py
index <HASH>..<HASH> 100644
--- a/plugins/oauth/server/providers/base.py
+++ b/plugins/oauth/server/providers/base.py
@@ -111,8 +111,8 @@ class ProviderBase(model_importer.ModelImporter):
             resp.raise_for_status()
         except requests.HTTPError:
             raise RestException(
-                'Got %s from %s, response="%s".' % (
-                    resp.status_code, kwargs['url'], content
+                'Got %s code from provider, response="%s".' % (
+                    resp.status_code, content
                 ), code=502)
 
         try:
Fix a small security issue in OAuth

This prevents possibly private information from leaking in an error
message.