Update main.py
Browse files
main.py
CHANGED
@@ -22,7 +22,7 @@ def read_image_from_stream(image_data, subscription_key, endpoint):
|
|
22 |
read_response_headers = response.headers
|
23 |
operation_location = read_response_headers["Operation-Location"]
|
24 |
else:
|
25 |
-
raise Exception(f"Unexpected response status: {response.status_code}")
|
26 |
|
27 |
return operation_location
|
28 |
|
|
|
22 |
read_response_headers = response.headers
|
23 |
operation_location = read_response_headers["Operation-Location"]
|
24 |
else:
|
25 |
+
raise Exception(f"Unexpected response status: {response.status_code}, {response.text}")
|
26 |
|
27 |
return operation_location
|
28 |
|