Skip to content

Commit

Permalink
I suppose context manager does not belong here at all
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Dec 30, 2024
1 parent a7d955e commit 9da6224
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12945,10 +12945,8 @@ def get_embed(self, track: TrackClass):

if track.file_ext == "MP3":
try:
# TODO(Martin): PR them context manager support for ID3
tag = mutagen.id3.ID3(filepath)
frame = tag.getall("APIC")
tag.close()
if frame:
pic = frame[0].data
except Exception:
Expand Down

0 comments on commit 9da6224

Please sign in to comment.