WIP, fix for not returning status_code on success condition
parent
86144d7766
commit
3438913846
|
@ -1 +1 @@
|
||||||
__version__ = "0.0.23b"
|
__version__ = "0.0.23c"
|
|
@ -229,6 +229,7 @@ class Camera(Device):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with requests.get(url, stream=True, headers=headers, timeout=self.een_instance._get_timeout_values('recorded_video')) as response:
|
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")
|
logging.info(f"{response.status_code} in save_video_to_file")
|
||||||
with open(filename, 'wb') as fname:
|
with open(filename, 'wb') as fname:
|
||||||
for chunk in response.iter_content(chunk_size=8192):
|
for chunk in response.iter_content(chunk_size=8192):
|
||||||
|
|
Loading…
Reference in New Issue