Skip to content

Commit

Permalink
Unnecessary if/else logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-raturi committed Jun 28, 2016
1 parent 94aa3f4 commit d98490c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picard/ui/searchdialog.py
Expand Up @@ -278,7 +278,6 @@ def parse_tracks_from_xml(self, tracks_xml):
length = ""
try:
releases = node.release_list[0].release
if releases:
for release in releases:
rel_id = release.id
rel_title = release.title[0].text
Expand All @@ -305,7 +304,8 @@ def parse_tracks_from_xml(self, tracks_xml):
release=rel_title, date=date, country=country,
release_type=types)
self.search_results.append((track, node))
else:

except AttributeError:
track = Track(id=rec_id, artist=artist, length=length,
title=rec_title, release="(Standalone Recording)")
self.search_results.append((track, node))
Expand Down

0 comments on commit d98490c

Please sign in to comment.