Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If callback_url is not set, don't force it to 'oob'

  • Loading branch information...
commit f4c00ff996374ea4306ca0c352aef8f00015676a 1 parent e17b3ed
Erik authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 twython/twython.py
View
6 twython/twython.py
@@ -223,10 +223,12 @@ def get_authentication_tokens(self):
Returns an authorization URL for a user to hit.
"""
- callback_url = self.callback_url or 'oob'
+ callback_url = self.callback_url
request_args = {}
- request_args['oauth_callback'] = callback_url
+ if callback_url:
+ request_args['oauth_callback'] = callback_url
+
method = 'get'
func = getattr(self.client, method)
Please sign in to comment.
Something went wrong with that request. Please try again.