From 1c51affef4ef80665ad496c46e73acc8d979dad9 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 12 Jan 2024 12:35:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Ruff=20refactoring.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/cli.py | 1 - tidal_dl_ng/metadata.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tidal_dl_ng/cli.py b/tidal_dl_ng/cli.py index 20caafa..f5704b8 100644 --- a/tidal_dl_ng/cli.py +++ b/tidal_dl_ng/cli.py @@ -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": diff --git a/tidal_dl_ng/metadata.py b/tidal_dl_ng/metadata.py index 44ec57e..f23c41d 100644 --- a/tidal_dl_ng/metadata.py +++ b/tidal_dl_ng/metadata.py @@ -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