Skip to content

Commit

Permalink
fix(author-search): 🥅 handle unknown artist properly. fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
djdembeck committed Oct 6, 2021
1 parent 52062eb commit 499c753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Contents/Code/__init__.py
Expand Up @@ -64,6 +64,10 @@ def search(self, results, media, lang, manual):
# Validate author name
search_helper.validate_author_name()

# Short circuit search if artist name is bad.
if not search_helper.media.artist:
return

# Call search API
result = self.call_search_api(search_helper)

Expand Down

0 comments on commit 499c753

Please sign in to comment.