WIP, fix for not returning status_code on success condition

main
Mark Cotton 2023-09-18 21:14:01 -05:00
parent 86144d7766
commit 3438913846
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
__version__ = "0.0.23b"
__version__ = "0.0.23c"

View File

@ -229,6 +229,7 @@ class Camera(Device):
try:
with requests.get(url, stream=True, headers=headers, timeout=self.een_instance._get_timeout_values('recorded_video')) as response:
status_code = response.status_code
logging.info(f"{response.status_code} in save_video_to_file")
with open(filename, 'wb') as fname:
for chunk in response.iter_content(chunk_size=8192):