We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd5430 commit 350fef2Copy full SHA for 350fef2
onvif/client.py
@@ -543,7 +543,9 @@ async def get_snapshot_uri(self, profile_token: str) -> str:
543
else:
544
try:
545
uri = normalize_url(result.Uri)
546
- except KeyError:
+ except (AttributeError, KeyError):
547
+ # AttributeError is raised when result.Uri is missing
548
+ # https://github.com/home-assistant/core/issues/135494
549
logger.warning(
550
"%s: The device returned an invalid snapshot URI", self.host
551
)
0 commit comments