Skip to content

Commit

Permalink
Merge pull request #859 from mkmer/Handle-None-type-in-poll_local_sto…
Browse files Browse the repository at this point in the history
…rage_manifest

Test for None type in poll_local_storage_manifest
  • Loading branch information
fronzbot authored Jan 13, 2024
2 parents 7d0e1f6 + e070379 commit d8fbbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blinkpy/sync_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ async def poll_local_storage_manifest(
response = await api.request_local_storage_manifest(
self.blink, self.network_id, self.sync_id
)
if "id" in response:
if response and "id" in response:
break
# Get the manifest.
else:
response = await api.get_local_storage_manifest(
self.blink, self.network_id, self.sync_id, manifest_request_id
)
if "clips" in response:
if response and "clips" in response:
break
seconds = backoff_seconds(retry=retry, default_time=3)
_LOGGER.debug("[retry=%d] Retrying in %d seconds", retry + 1, seconds)
Expand Down

0 comments on commit d8fbbc1

Please sign in to comment.