Fix error handling

This commit is contained in:
augustin64 2023-01-23 21:24:55 +01:00
parent b75388f463
commit a08750e00e

View File

@ -63,7 +63,8 @@ def recognize_mnist(image):
"cnn": json_data_cnn "cnn": json_data_cnn
} }
} }
except Error: except subprocess.CalledProcessError as e:
print(e)
return { return {
"status": 500, "status": 500,
"data": "Internal Server Error" "data": "Internal Server Error"