Source

django-publicauth / publicauth / backends / oauth.py

Diff from to

publicauth/backends/oauth.py

             oauth_token = data['oauth_token']
             oauth_verifier = data.get('oauth_verifier', None)
         except MultiValueDictKeyError:
-            messages.add_message(request, messages.ERROR, lang.BACKEND_ERROR)
+            messages.error(request, lang.BACKEND_ERROR)
             raise Redirect('publicauth-login')
         oauth_req = OAuthRequest.from_consumer_and_token(consumer, http_url=self.ACCESS_TOKEN_URL)
         oauth_req.set_parameter('oauth_token', oauth_token)