Skip to content

Commit 80c4289

Browse files
Empty dict if client_args is None
I should run local tests before I commit :/
1 parent d019189 commit 80c4289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twython/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, app_key=None, app_secret=None, oauth_token=None,
6565
if oauth_version == 2:
6666
self.request_token_url = self.api_url % 'oauth2/token'
6767

68-
self.client_args = client_args
68+
self.client_args = client_args or {}
6969
default_headers = {'User-Agent': 'Twython v' + __version__}
7070
if not 'headers' in self.client_args:
7171
# If they didn't set any headers, set our defaults for them

0 commit comments

Comments
 (0)