Commit a89f319f authored by Charlie Jacomme's avatar Charlie Jacomme

[ajaj.py]Uniformisation du message d'erreur

parent f8041b88
......@@ -59,7 +59,7 @@ def get_display_info(request):
out = nk.full_read(sock)["msg"]
return HttpResponse(json.dumps(out))
else:
HttpResponse("Erreur")
HttpResponse(u'"Erreur"')
@csrf_exempt
def search(request):
......@@ -143,7 +143,7 @@ def get_photo(request, idbde=None):
urlphoto = utilities._get_url_photo(idbde)
return HttpResponse('<img src = "%s"></img>' % (urlphoto))
else:
return HttpResponse("Erreur")
return HttpResponse(u'"Erreur"')
@csrf_exempt
def do_credit_retrait(request, action):
......@@ -172,7 +172,7 @@ def do_credit_retrait(request, action):
errmsg += "%s : %s\n" % (k,"".join([str(i) for i in v]))
return HttpResponse(errmsg)
else:
return HttpResponse("Erreur à l'établissement de la connexion")
return HttpResponse(u'"Erreur"')
@csrf_exempt
def do_transfert(request):
......@@ -205,4 +205,4 @@ def do_transfert(request):
out = nk.full_read(sock)
return HttpResponse(json.dumps(out))
else:
return HttpResponse("Erreur à l'établissement de la connexion")
return HttpResponse(u'"Erreur"')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment