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 0781d79 commit 6db8a15Copy full SHA for 6db8a15
blinkpy/camera.py
@@ -162,8 +162,8 @@ def check_for_motion(self):
162
else:
163
self.motion_detected = False
164
except KeyError:
165
- _LOGGER.warning("Could not extract clip info from camera %s",
166
- self.name)
+ _LOGGER.info("Could not extract clip info from camera %s",
+ self.name)
167
168
def image_to_file(self, path):
169
"""
@@ -187,6 +187,9 @@ def video_to_file(self, path):
187
188
_LOGGER.debug("Writing video from %s to %s", self.name, path)
189
response = self._cached_video
190
+ if response is None:
191
+ _LOGGER.error("No saved video exist for %s.", self.name)
192
+ return
193
with open(path, 'wb') as vidfile:
194
copyfileobj(response.raw, vidfile)
195
0 commit comments