From 77f22c2b8400bb959c918b5ed92f9740410683fc Mon Sep 17 00:00:00 2001 From: mungai-njoroge Date: Mon, 15 Jan 2024 18:38:56 +0300 Subject: [PATCH] fix #165 --- app/models/album.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/album.py b/app/models/album.py index 887f122..36d1629 100644 --- a/app/models/album.py +++ b/app/models/album.py @@ -207,7 +207,7 @@ class Album: 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):