Permalink
Browse files

Call render_html correctly

  • Loading branch information...
1 parent a282469 commit 1c7a0d7b4f6932c8659a3b4d60ccddd7b097c5f9 @omab committed Sep 1, 2013
Showing with 2 additions and 5 deletions.
  1. +2 −5 social_auth/backends/facebook.py
View
7 social_auth/backends/facebook.py
@@ -1,5 +1,4 @@
from django.conf import settings
-from django.template import TemplateDoesNotExist
if getattr(settings, 'FACEBOOK_APP_AUTH', False):
@@ -35,7 +34,5 @@ def auth_html(self):
'FACEBOOK_COMPLETE_URI': self.redirect_uri,
}
tpl = self.setting('LOCAL_HTML', 'facebook.html')
- try:
- return self.strategy.render_html(tpl=tpl, context=ctx)
- except TemplateDoesNotExist:
- return self.strategy.render_html(html=REDIRECT_HTML, context=ctx)
+ return self.strategy.render_html(tpl=tpl, html=REDIRECT_HTML,
+ context=ctx)

0 comments on commit 1c7a0d7

Please sign in to comment.