Skip to content

Commit

Permalink
fix(#7): Fix searching for releases in case of an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Samik081 committed Jan 12, 2023
1 parent 4988b33 commit 76458c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beetsplug/beatport4.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def search(self, query, model='releases', details=True):
if model == 'releases':
for release in response['releases']:
if details:
yield self.get_release(release['id'])
release = self.get_release(release['id'])
if release:
yield release
continue
yield BeatportRelease(release)
elif model == 'tracks':
for track in response['tracks']:
Expand Down

0 comments on commit 76458c9

Please sign in to comment.