From 9a649a59d68d71c92f8a1c74558820ba5cfce008 Mon Sep 17 00:00:00 2001 From: blissful Date: Thu, 2 May 2024 15:24:30 -0400 Subject: [PATCH] support resumes for invalid toml files --- rose/releases.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rose/releases.py b/rose/releases.py index a0e17dd..2d11e48 100644 --- a/rose/releases.py +++ b/rose/releases.py @@ -365,7 +365,10 @@ def edit_release( return try: - release_meta = MetadataRelease.from_toml(toml) + try: + release_meta = MetadataRelease.from_toml(toml) + except tomllib.TOMLDecodeError as e: + raise ReleaseEditFailedError("Failed to decode TOML file.") from e for t in tracks: track_meta = release_meta.tracks[t.id] tags = AudioTags.from_file(t.source_path)