Return 500 on sync notify errors
- Legacy-Id: 4877
This commit is contained in:
parent
e9c6c9e347
commit
2ab4161daf
|
@ -1,6 +1,6 @@
|
|||
import subprocess, os
|
||||
|
||||
from django.http import HttpResponse, HttpResponseForbidden
|
||||
from django.http import HttpResponse, HttpResponseForbidden, HttpResponseServerError
|
||||
from django.shortcuts import render_to_response
|
||||
from django.template import RequestContext
|
||||
from django.template.loader import render_to_string
|
||||
|
@ -90,7 +90,7 @@ def notify(request, org, notification):
|
|||
failed, out = runscript("rfc-editor-index-updates")
|
||||
|
||||
if failed:
|
||||
return HttpResponse("FAIL\n\n" + out, content_type="text/plain")
|
||||
return HttpResponseServerError("FAIL\n\n" + out, content_type="text/plain")
|
||||
else:
|
||||
return HttpResponse("OK", content_type="text/plain")
|
||||
|
||||
|
|
Loading…
Reference in a new issue