Esempio n. 1
0
 def _check_user_agent(self):
     if not self.user_agent:
         raise ConfigurationError('Invalid or no User-Agent set.')
Esempio n. 2
0
 def set_token(self, token, secret):
     try:
         self._fetcher.store_token(token, secret)
     except AttributeError:
         raise ConfigurationError(
             'You must first set the consumer key and secret.')