Skip to content

Commit 8be35da

Browse files
authored
Merge pull request #104 from fronzbot/fix-warning
Changed 'warning' to 'info' in camera
2 parents 0ab17ae + 6db8a15 commit 8be35da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

blinkpy/camera.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def check_for_motion(self):
162162
else:
163163
self.motion_detected = False
164164
except KeyError:
165-
_LOGGER.warning("Could not extract clip info from camera %s",
166-
self.name)
165+
_LOGGER.info("Could not extract clip info from camera %s",
166+
self.name)
167167

168168
def image_to_file(self, path):
169169
"""
@@ -187,6 +187,9 @@ def video_to_file(self, path):
187187
"""
188188
_LOGGER.debug("Writing video from %s to %s", self.name, path)
189189
response = self._cached_video
190+
if response is None:
191+
_LOGGER.error("No saved video exist for %s.", self.name)
192+
return
190193
with open(path, 'wb') as vidfile:
191194
copyfileobj(response.raw, vidfile)
192195

0 commit comments

Comments
 (0)