Skip to content

Commit

Permalink
Handle case where single artist is passed to save_artists
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwmillr committed Dec 1, 2018
1 parent 6e2b8c3 commit 9e6e6fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lyricsgenius/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def save_artists(self, artists, filename="artist_lyrics", overwrite=False):
:param filename: Name of output file (json)
:param overwrite: Overwrites preexisting file if True
"""
if isinstance(artists, Artist):
artists = [artists]

# Create a temporary directory for lyrics
start = time.time()
Expand Down

0 comments on commit 9e6e6fa

Please sign in to comment.