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 GitHub
parent dac60990ee
commit a3cd03b70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)