handle filenotfound in created_date

+ move store loaders up in populate.py
This commit is contained in:
mungai-njoroge
2023-12-13 23:15:25 +03:00
parent c451c0e329
commit 300c614a2f
7 changed files with 23 additions and 8 deletions
+4 -1
View File
@@ -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