Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit e8313a9

Browse files
author
Jonathan Schultz
committed
Changed to keep validation logic as in master
1 parent 6a8d3ec commit e8313a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

twitter/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def __init__(self,
260260
"strongly advised to increase it above 16384"
261261
))
262262

263-
if not (all([consumer_key, consumer_secret])
264-
and (application_only_auth or all([access_token_key, access_token_secret]))):
263+
if (consumer_key and not
264+
(application_only_auth or all([access_token_key, access_token_secret]))):
265265
raise TwitterError({'message': "Missing oAuth Consumer Key or Access Token"})
266266

267267
self.SetCredentials(consumer_key, consumer_secret, access_token_key, access_token_secret,

0 commit comments

Comments
 (0)