♻️ Ruff refactoring.
This commit is contained in:
@@ -177,7 +177,6 @@ def download(
|
||||
fn_logger=fn_logger,
|
||||
)
|
||||
elif media_name in ["album", "playlist", "mix"]:
|
||||
# TODO: Handle mixes.
|
||||
file_template: str | bool = False
|
||||
|
||||
if media_name == "album":
|
||||
|
||||
@@ -167,8 +167,8 @@ class Metadata:
|
||||
try:
|
||||
with open(path_file, "rb") as f:
|
||||
result = f.read()
|
||||
except OSError:
|
||||
# TODO: Implement logging.
|
||||
pass
|
||||
except OSError as e:
|
||||
# TODO: Implement propper logging.
|
||||
print(e)
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user