def login(self, username, password):
     try:
         provider = get_liberateca_provider()
     except Exception as e:
         return defer.fail(e)
     else:
         return provider.login(username, password)
Exemplo n.º 2
0
 def login(self, username, password):
     # Overridden from mother class.
     try:
         provider = get_spotify_provider()
     except ResourceProviderNotFound, error:
         return defer.fail(error)