Skip to content

Commit ee2c110

Browse files
committed
fix(audio/decoders): use audio_format in unknown-format error
- Bug existed since #8 - Resurfaced while adding FLAC
1 parent 7aa377d commit ee2c110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librespot/audio/decoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_quality(audio_format: AudioFile.Format) -> AudioQuality:
3535
AudioFile.AAC_48,
3636
]:
3737
return AudioQuality.VERY_HIGH
38-
raise RuntimeError("Unknown format: {}".format(format))
38+
raise RuntimeError("Unknown format: {}".format(audio_format))
3939

4040
def get_matches(self,
4141
files: typing.List[AudioFile]) -> typing.List[AudioFile]:

0 commit comments

Comments
 (0)