From 5ade386f0c700c6ddf785bd991851acea9b848a8 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 5 Oct 2022 12:41:04 -0500 Subject: [PATCH] Check oauth_client is not None in AsyncBaseStream._connect --- tweepy/asynchronous/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.25.1