mirror of
https://github.com/augustin64/projet-tipe
synced 2025-02-02 19:39:39 +01:00
Fix error handling
This commit is contained in:
parent
b75388f463
commit
a08750e00e
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user