From 42e852cc7ed9db3a644b162094240b5e3f7bc55b Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Mon, 21 Jan 2019 22:12:56 -0800 Subject: [PATCH] Clarify `_search_spotify` return type --- beetsplug/spotify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index cbb43ffef..152bea46d 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -370,8 +370,9 @@ class SpotifyPlugin(BeetsPlugin): :param filters: (Optional) Field filters to apply. :type filters: dict :param keywords: (Optional) Query keywords to use. - :return: JSON data for the class:`Response ` object - :rtype: dict + :return: JSON data for the class:`Response ` object or None + if no search results are returned + :rtype: dict or None """ query = self._construct_search_query( keywords=keywords, filters=filters