Skip to content

Commit

Permalink
Update conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Apr 22, 2023
1 parent 7f7d50e commit cd0fd95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ def new_initialize(
no_cache=True,
headless=True,
max_retries=3,
use_cache_file=False,
):
"""This function allows calling `initialize()` multiple times"""
try:
return SpotifyClient()
except:
except Exception:
return ORIGINAL_INITIALIZE(
client_id=client_id,
client_secret=client_secret,
Expand All @@ -66,6 +67,7 @@ def new_initialize(
no_cache=no_cache,
headless=headless,
max_retries=max_retries,
use_cache_file=use_cache_file,
)


Expand Down

0 comments on commit cd0fd95

Please sign in to comment.