File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def start(self):
106
106
"Could not extract some sync module info: %s" , response , exc_info = True
107
107
)
108
108
109
- self .get_network_info ()
109
+ is_ok = self .get_network_info ()
110
110
self .check_new_videos ()
111
111
try :
112
112
for camera_config in self .camera_list :
@@ -123,6 +123,8 @@ def start(self):
123
123
)
124
124
return False
125
125
126
+ if not is_ok :
127
+ return False
126
128
self .available = True
127
129
return True
128
130
@@ -156,10 +158,13 @@ def get_network_info(self):
156
158
157
159
if is_errored :
158
160
self .available = False
161
+ return False
162
+ return True
159
163
160
164
def refresh (self , force_cache = False ):
161
165
"""Get all blink cameras and pulls their most recent status."""
162
- self .get_network_info ()
166
+ if not self .get_network_info ():
167
+ return
163
168
self .check_new_videos ()
164
169
for camera_name in self .cameras .keys ():
165
170
camera_id = self .cameras [camera_name ].camera_id
You can’t perform that action at this time.
0 commit comments