diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-04-22 07:58:32 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-04-22 07:58:32 +0200 |
| commit | 840f23d2529550337c96ac5cb1dd7cf3df0c6d93 (patch) | |
| tree | a986d25d943c87d19f14ef5da796e0f169ba2461 /tidal_dl_ng/helper/path.py | |
| parent | c3519c54a5c3e6d431a40fdac87e8199bf7c520c (diff) | |
| download | tidal-dl-ng-840f23d2529550337c96ac5cb1dd7cf3df0c6d93.tar.gz | |
✨ Exception logging on filename sanitization and download watcher.
Diffstat (limited to 'tidal_dl_ng/helper/path.py')
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index b101b59..e6a162e 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -207,7 +207,6 @@ def path_file_sanitize(path_file: str, adapt: bool = False, uniquify: bool = Fal filename_sanitized = filename_sanitized[: -len(file_suffix)] + file_suffix except ValidationError as e: # TODO: Implement proper exception handling and logging. - # print(e) # Hacky stuff, since the sanitizing function does not shorten the filename somehow (bug?) # TODO: Remove after pathvalidate update. # If filename too long @@ -218,6 +217,8 @@ def path_file_sanitize(path_file: str, adapt: bool = False, uniquify: bool = Fal + FILENAME_SANITIZE_PLACEHOLDER + file_extension ) + else: + print(e) # Join path and filename result: str = os.path.join(pathname_sanitized, filename_sanitized) |
