Fix adding callback_url for old style servers
This commit is contained in:
parent
f4c00ff996
commit
ffb768d24d
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ class Twython(object):
|
|||
}
|
||||
|
||||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue