Skip to content

Commit

Permalink
fix #165
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilvx committed Jan 15, 2024
1 parent 1cf8e17 commit 77f22c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/album.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_date_from_tracks(self, tracks: list[Track]):
dates = (int(t.date) for t in tracks if t.date)
try:
self.date = datetime.datetime.fromtimestamp(min(dates)).year
except ValueError:
except:
self.date = datetime.datetime.now().year

def set_count(self, count: int):
Expand Down

0 comments on commit 77f22c2

Please sign in to comment.