From 248b272c4b4862ac4babda295c4254748c556ad2 Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Sun, 30 Apr 2017 12:02:47 -0700 Subject: [PATCH] Forgot to finish except loop --- .travis.yml | 1 - irs/ripper.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d96b021..308af7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ install: - python setup.py install script: - - irs -u "spotify" -p "Coffee Table Jazz" - python tests/album.py - python tests/playlist.py - python tests/post_processors.py diff --git a/irs/ripper.py b/irs/ripper.py index fc64727..63b6993 100644 --- a/irs/ripper.py +++ b/irs/ripper.py @@ -210,7 +210,9 @@ with init, or in method arguments.") elif type == "playlist": try: list_of_lists = self.spotify.user_playlists(username)["items"] - except + except spotipy.client.SpotifyException: + print("No user was found by that name.") + return False if len(list_of_lists) > 0: the_list = None