Don't crash if readpicture returns no image bytes
This commit is contained in:
parent
8b5912bed2
commit
f7fc453c50
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class MpdStateListener(Player):
|
|||
async def readpicture(self, file: str) -> bytes | None:
|
||||
try:
|
||||
readpic = await self.client.readpicture(file)
|
||||
return readpic["binary"]
|
||||
return readpic.get("binary")
|
||||
except CommandError:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue