Open GoogleCodeExporter opened 9 years ago
Original comment by muijsenb...@gmail.com
on 26 Feb 2014 at 2:55
Original comment by muijsenb...@gmail.com
on 2 Mar 2014 at 10:29
Reopened issue.
I thought it was fixed but it isn't.
The problem seems to be that python-social-auth custom exceptions that are
throw from the wrapped python-social-auth module ("social") have a module path
relative to the wrapped module. The exceptions need to be caught in the
wrapping plugin code but in the plugin code, the exceptions are imported with
the complete module path. This results in isinstance() not working. Catching
explicit exception type also does not work.
I added a workaround by checking the module of the exception:
def is_social_auth_exception(ex):
return ex.__class__.__module__ in('social.exceptions', SocialAuthBaseException.__module__)
But this is hacky.
Original comment by muijsenb...@gmail.com
on 2 Mar 2014 at 10:34
Original issue reported on code.google.com by
muijsenb...@gmail.com
on 25 Feb 2014 at 5:06