Skip to content

Commit 8ba975b

Browse files
committed
UPDATED check_connection
1 parent 37dc025 commit 8ba975b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CameraAlgorithms/services/cameraalgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def CreateCameraAlgorithms(camera_algorithm_data: Dict[str, Any]) -> None:
3232

3333
def check_connection(camera_data: Dict[str, str]) -> bool:
3434
try:
35-
response = sender("add_camera", camera_data)
35+
sender("add_camera", camera_data)
3636
except requests.exceptions.HTTPError as e:
3737
raise SenderError("/add_camera") from e
3838

39-
return response["status"]
39+
return True
4040

4141

4242
def DeleteCamera(camera_instance: Camera) -> Dict[str, Any]:

0 commit comments

Comments
 (0)