From c6de8dc7131e5165b5d9cf2c266444a6f2b6c68d Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Sat, 11 Apr 2020 13:32:23 +0100 Subject: [PATCH] Fix no handler could be found for logger --- spotipy/client.py | 1 + spotipy/util.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spotipy/client.py b/spotipy/client.py index 961afca..4fc9db5 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -14,6 +14,7 @@ import six from spotipy.exceptions import SpotifyException +logging.basicConfig() logger = logging.getLogger(__name__) diff --git a/spotipy/util.py b/spotipy/util.py index 5159330..da18295 100644 --- a/spotipy/util.py +++ b/spotipy/util.py @@ -108,4 +108,4 @@ def get_host_port(netloc, default_port=8080): host = netloc port = default_port - return (host, port) + return host, port