mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-04 10:20:18 +00:00
fix #165
This commit is contained in:
parent
1cf8e1720d
commit
77f22c2b84
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user