mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Catch zeep fault as well on GetSystemDateAndTime call. (#138916)
This commit is contained in:
parent
9f7c4648a2
commit
b856de225d
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user