Empty dict if client_args is None
I should run local tests before I commit :/
This commit is contained in:
parent
d0191895d5
commit
80c428992b
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class Twython(EndpointsMixin, object):
|
|||
if oauth_version == 2:
|
||||
self.request_token_url = self.api_url % 'oauth2/token'
|
||||
|
||||
self.client_args = client_args
|
||||
self.client_args = client_args or {}
|
||||
default_headers = {'User-Agent': 'Twython v' + __version__}
|
||||
if not 'headers' in self.client_args:
|
||||
# If they didn't set any headers, set our defaults for them
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue