Skip to content

Commit

Permalink
馃Ч Remove unused variables and useless statements
Browse files Browse the repository at this point in the history
(Found by the IntelliJ Python inspections)
  • Loading branch information
Steffo99 committed Feb 14, 2021
1 parent 7edbe43 commit c94e6c4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lyricsgenius/genius.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ def find_artist_id(search_term):
print('Searching for songs by {0}...\n'.format(search_term))

# Perform a Genius API search for the artist
found_artist = None
response = self.search_all(search_term)
found_artist = self._get_item_from_search_response(response,
search_term,
Expand All @@ -523,12 +522,6 @@ def find_artist_id(search_term):
return None

artist_info = self.artist(artist_id)['artist']
found_name = artist_info['name']
if found_name != artist_name and allow_name_change:
if self.verbose:
print("Changing artist name to '{a}'".format(
a=safe_unicode(found_name)))
artist_name = found_name

# Create the Artist object
artist = Artist(self, artist_info)
Expand Down

0 comments on commit c94e6c4

Please sign in to comment.