-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Quickfix Bug #7384 #7582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickfix Bug #7384 #7582
Conversation
@DavidLP, thanks for your PR! By analyzing the history of the files in this pull request, we identified @happyleavesaoc, @fabaff and @abmantis to be potential reviewers. |
You say that the None case was not treated, but you added exception handling. Was the exception that was not catch before? |
The exception occured when using None like a dict. None does not have a get method. |
Isn't it better to just do a |
It is not guaranteed that repeated calls to |
Ok. Looks good to me then! |
At another point the same unsafe API call is done, that I have to fix first. So please do not merge yet. |
I do not have any issues after this fix. Without this fix spotify plugin cannot be used right now. Thus I recomment merging and releasing in next bugfix releae. |
Description:
The used python library
spotipy version 2.4.4
from https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip returns forspotipy.Spotify(auth=...).devices()
either a pythondict
orNone
. TheNone
case was not treated leading to a crash.Related issue (if applicable): fixes #7384
Example entry for
configuration.yaml
(if applicable):Checklist:
If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass