diff --git a/beetsplug/acousticbrainz.py b/beetsplug/acousticbrainz.py index a0b83b59c..a4b153fc9 100644 --- a/beetsplug/acousticbrainz.py +++ b/beetsplug/acousticbrainz.py @@ -142,10 +142,7 @@ class AcousticPlugin(plugins.BeetsPlugin): self._log.debug("fetching URL: {}", url) try: - res = requests.get( - url, - timeout=10, - ) + res = requests.get(url, timeout=10) except requests.RequestException as exc: self._log.info("request error: {}", exc) return {} diff --git a/beetsplug/embyupdate.py b/beetsplug/embyupdate.py index e6bc0d03f..22c889473 100644 --- a/beetsplug/embyupdate.py +++ b/beetsplug/embyupdate.py @@ -135,10 +135,7 @@ def get_user(host, port, username): :rtype: list """ url = api_url(host, port, "/Users/Public") - r = requests.get( - url, - timeout=10, - ) + r = requests.get(url, timeout=10) user = [i for i in r.json() if i["Name"] == username] return user diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 0780278fb..e8f61cffa 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -1069,10 +1069,7 @@ class Spotify(RemoteArtSource): self._log.debug("Fetchart: no Spotify album ID found") return try: - response = requests.get( - url, - timeout=10, - ) + response = requests.get(url, timeout=10) response.raise_for_status() except requests.RequestException as e: self._log.debug("Error: " + str(e))