bjarneo / Pytify

A CLI application for controlling Spotify
MIT License
741 stars 40 forks source link

better error handling when no credentials are added to bashrc file #60

Closed bjarneo closed 7 years ago

bjarneo commented 7 years ago

Before

Traceback (most recent call last):
  File "/usr/local/bin/pytify", line 7, in <module>
    from pytify.cli import main
  File "/usr/local/lib/python3.6/site-packages/pytify/cli.py", line 3, in <module>
    import pytify.pytifylib
  File "/usr/local/lib/python3.6/site-packages/pytify/pytifylib.py", line 10, in <module>
    class Pytifylib:
  File "/usr/local/lib/python3.6/site-packages/pytify/pytifylib.py", line 18, in Pytifylib
    client_credentials_manager = SpotifyClientCredentials()
  File "/usr/local/lib/python3.6/site-packages/spotipy/oauth2.py", line 39, in __init__
    raise SpotifyOauthError('No client id')
spotipy.oauth2.SpotifyOauthError: No client id

Now

Did not find Spotify credentials.
Please visit https://github.com/bjarneo/pytify#credentials for more information.