actually we want 500
This commit is contained in:
parent
fd5796ed07
commit
a6b0bb0183
|
@ -28,7 +28,7 @@ def get_model():
|
||||||
'code': 502,
|
'code': 502,
|
||||||
'error': 'failed to reach backend',
|
'error': 'failed to reach backend',
|
||||||
'type': error.__class__.__name__
|
'type': error.__class__.__name__
|
||||||
}), 502
|
}), 500 # return 500 so Cloudflare doesn't intercept us
|
||||||
else:
|
else:
|
||||||
return jsonify({
|
return jsonify({
|
||||||
'result': model,
|
'result': model,
|
||||||
|
|
Reference in New Issue