Skip to content

Commit

Permalink
Catch zeep fault as well on GetSystemDateAndTime call. (#138916)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryKuzmenko authored Feb 20, 2025
1 parent 9f7c464 commit b856de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/onvif/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async def async_check_date_and_time(self) -> None:
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
)
Expand Down

0 comments on commit b856de2

Please sign in to comment.