From 2774a4d242e25050f03f39036d885bfa96ef6ef7 Mon Sep 17 00:00:00 2001 From: Simon Hewitt Date: Wed, 17 May 2017 15:20:57 -0700 Subject: [PATCH] use logging arguments for unknown message --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index f56617a..8735da7 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -88,7 +88,7 @@ class StreamListener(object): if self.on_user_withheld(data['user_withheld']) is False: return False else: - logging.error("Unknown message type: " + str(raw_data)) + logging.error("Unknown message type: %s", str(raw_data)) def keep_alive(self): """Called when a keep-alive arrived""" -- 2.25.1