Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions sonarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,7 @@ async def update(self, full_update: bool = False) -> Application:
if status is None:
raise SonarrError("Sonarr returned an empty API status response")

diskspace = await self._request("diskspace")
if not diskspace or diskspace is None:
raise SonarrError("Sonarr returned an empty API diskspace response")

self._application = Application({"info": status, "diskspace": diskspace})
return self._application
self._application = Application({"info": status, "diskspace": None})

diskspace = await self._request("diskspace")
self._application.update_from_dict({"diskspace": diskspace})
Expand Down