Skip to content

Commit

Permalink
support resumes for invalid toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed May 2, 2024
1 parent 6f898b2 commit 9a649a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rose/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a649a5

Please sign in to comment.