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.4from https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip returns forspotipy.Spotify(auth=...).devices()either a pythondictorNone. TheNonecase 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:
toxrun successfully. Your PR cannot be merged unless tests pass