playmak3r commited on
Commit
02e8372
1 Parent(s): e925a0f

fix: error handling

Browse files
Files changed (1) hide show
  1. server/app.py +1 -1
server/app.py CHANGED
@@ -62,7 +62,7 @@ def translate_api():
62
  redis_client.lpush(queue_key, input_text) # left push
63
  result = query_translation(input_text)
64
  if result is not None: return json.dumps({ "text": result })
65
- else: Response(status= 500)
66
  return Response(status= 400)
67
 
68
 
 
62
  redis_client.lpush(queue_key, input_text) # left push
63
  result = query_translation(input_text)
64
  if result is not None: return json.dumps({ "text": result })
65
+ else: return Response(status= 500)
66
  return Response(status= 400)
67
 
68