Skip to content
Browse files

Fix adding callback_url for old style servers

  • Loading branch information...
1 parent f4c00ff commit ffb768d24deaeb1a26c0e3d3324df88ec9c81914 Erik committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 twython/twython.py
View
2 twython/twython.py
@@ -248,7 +248,7 @@ def get_authentication_tokens(self):
}
# Use old-style callback argument if server didn't accept new-style
- if callback_url != 'oob' and not oauth_callback_confirmed:
+ if callback_url and not oauth_callback_confirmed:
auth_url_params['oauth_callback'] = callback_url
request_tokens['auth_url'] = self.authenticate_url + '?' + urllib.urlencode(auth_url_params)

0 comments on commit ffb768d

Please sign in to comment.
Something went wrong with that request. Please try again.