From 80c428992b7858c240a949d93c3e2a0bbe2e39e3 Mon Sep 17 00:00:00 2001 From: Mike Helmick Date: Tue, 11 Jun 2013 10:48:46 -0400 Subject: [PATCH] Empty dict if client_args is None I should run local tests before I commit :/ --- twython/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/api.py b/twython/api.py index 7a0eb38..3e1ddce 100644 --- a/twython/api.py +++ b/twython/api.py @@ -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