From: Harmon Date: Wed, 5 Oct 2022 17:41:04 +0000 (-0500) Subject: Check oauth_client is not None in AsyncBaseStream._connect X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5ade386f0c700c6ddf785bd991851acea9b848a8;p=tweepy.git Check oauth_client is not None in AsyncBaseStream._connect --- diff --git a/tweepy/asynchronous/streaming.py b/tweepy/asynchronous/streaming.py index 7a19d44..bb7c490 100644 --- a/tweepy/asynchronous/streaming.py +++ b/tweepy/asynchronous/streaming.py @@ -61,7 +61,7 @@ class AsyncBaseStream: try: while error_count <= self.max_retries: try: - if oauth_client: + if oauth_client is not None: url, headers, body = oauth_client.sign( url, http_method=method, headers=headers, body=body )