Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove debug code. Refs gh-90
  • Loading branch information
omab committed Oct 17, 2011
1 parent 6628416 commit 7f74911
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions social_auth/backends/__init__.py
Expand Up @@ -133,23 +133,18 @@ def authenticate(self, *args, **kwargs):
'is_new': False,
})
for name in PIPELINE:
mod_name, func_name = name.rsplit('.', 1)
try:
mod_name, func_name = name.rsplit('.', 1)
try:
mod = import_module(mod_name)
except ImportError:
print "IMPORT ERROR", mod_name, func_name
logger.exception('Error importing pipeline %s', name)
else:
pipeline = getattr(mod, func_name, None)
if callable(pipeline):
print "CALLABLE", mod_name, func_name
try:
kwargs.update(pipeline(*args, **kwargs) or {})
except StopPipeline:
break
except Exception, e:
print "EXCEPTION:", str(e)
mod = import_module(mod_name)
except ImportError:
logger.exception('Error importing pipeline %s', name)
else:
pipeline = getattr(mod, func_name, None)
if callable(pipeline):
try:
kwargs.update(pipeline(*args, **kwargs) or {})
except StopPipeline:
break

social_user = kwargs.get('social_user')
if social_user:
Expand Down

0 comments on commit 7f74911

Please sign in to comment.