yekibud/django-social-auth — comment on commit 720deb56cbccd6d0a44bdecffaf94202523b70d1
File:  line 0
By mlavin:

This will not work if `WHITE_LISTED_DOMAINS` is not defined in the settings because `None` is not iterable. The `raise Exception, 'INVALID DOMAIN'` syntax is deprecated in Python 3.X via [PEP3109][1] and should not be used for future compatibility.

[1]: http://www.python.org/dev/peps/pep-3109/