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