1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-31 00:22:12 +00:00

Fix checking of upgrade API availability during setup of Synology DSM integration (#79435)

This commit is contained in:
Michael
2022-10-02 02:43:15 +02:00
committed by Paulus Schoutsen
parent a3833a408b
commit 2703bbc630

View File

@@ -110,7 +110,7 @@ class SynoApi:
# check if upgrade is available
try:
self.dsm.upgrade.update()
except SynologyDSMAPIErrorException as ex:
except SYNOLOGY_CONNECTION_EXCEPTIONS as ex:
self._with_upgrade = False
self.dsm.reset(SynoCoreUpgrade.API_KEY)
LOGGER.debug("Disabled fetching upgrade data during setup: %s", ex)