Catch zeep fault as well on GetSystemDateAndTime call. (#138916)

pull/139012/head
Dmitry Kuzmenko 2025-02-20 17:18:19 +03:00 committed by Franck Nijhof
parent 8c3ee80203
commit d752a3a24c
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class ONVIFDevice:
LOGGER.debug("%s: Retrieving current device date/time", self.name)
try:
device_time = await device_mgmt.GetSystemDateAndTime()
except RequestError as err:
except (RequestError, Fault) as err:
LOGGER.warning(
"Couldn't get device '%s' date/time. Error: %s", self.name, err
)