Revision 3f40ce16 snf-astakos-app/astakos/im/auth_providers.py

b/snf-astakos-app/astakos/im/auth_providers.py
57 57
REQUIRED_PROVIDERS = {}
58 58

  
59 59

  
60
class InvalidProvider(Exception):
61
    pass
62

  
63

  
60 64
class AuthProviderBase(type):
61 65

  
62 66
    def __new__(cls, name, bases, dct):
......
667 671
    Return a provider instance from the auth providers registry.
668 672
    """
669 673
    if not module in PROVIDERS:
670
        raise Exception('Invalid auth provider "%s"' % module)
674
        raise InvalidProvider('Invalid auth provider "%s"' % module)
671 675

  
672 676
    return PROVIDERS.get(module)(user_obj, identifier, **params)

Also available in: Unified diff