photo_processor.py: verify=False для SSL cert
This commit is contained in:
@@ -101,7 +101,8 @@ def _upload_to_api(image_bytes: bytes, user_id: str, coords: tuple) -> dict:
|
|||||||
files={
|
files={
|
||||||
"image": ("photo.jpg", image_bytes, "image/jpeg")
|
"image": ("photo.jpg", image_bytes, "image/jpeg")
|
||||||
},
|
},
|
||||||
timeout=30
|
timeout=30,
|
||||||
|
verify=False
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user