mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
handle filenotfound in created_date
+ move store loaders up in populate.py
This commit is contained in:
+4
-1
@@ -50,7 +50,10 @@ class Track:
|
||||
created_date: float = 0.0
|
||||
|
||||
def set_created_date(self):
|
||||
self.created_date = Path(self.filepath).stat().st_ctime
|
||||
try:
|
||||
self.created_date = Path(self.filepath).stat().st_ctime
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
def __post_init__(self):
|
||||
self.og_title = self.title
|
||||
|
||||
Reference in New Issue
Block a user