]> git.parisson.com Git - django-social-auth.git/commitdiff
Remove debug code. Refs gh-90
authorMatías Aguirre <matiasaguirre@gmail.com>
Mon, 17 Oct 2011 07:10:59 +0000 (05:10 -0200)
committerMatías Aguirre <matiasaguirre@gmail.com>
Mon, 17 Oct 2011 07:10:59 +0000 (05:10 -0200)
social_auth/backends/__init__.py

index 434d24c85360d76ba1fe1d16a865361e7de740a1..5a3e8384b940450e66948db6a8f62a508661cbaf 100644 (file)
@@ -133,23 +133,18 @@ class SocialAuthBackend(ModelBackend):
             '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: